Skip to content

Kiln API / kiln / KilnError

Class: KilnError ​

Every error Kiln throws names the fix. message reads as "<what happened>. <what to do>".

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new KilnError(
   code, 
   message, 
   options?
): KilnError;

Parameters ​

ParameterType
codestring
messagestring
options?{ cause?: unknown; }
options.cause?unknown

Returns ​

KilnError

Overrides ​

ts
Error.constructor

Properties ​

code ​

ts
readonly code: string;