Optional message: stringOptional options: { Optional cause?: voidOptional data?: POJOOptional timestamp?: DateCausation of the exception Can be used to know what caused this exception
Arbitrary data
Optional stackTimestamp when exception was constructed in milliseconds Guaranteed to be weakly monotonic
Static descriptionStatic Optional prepareOptional override for formatting stack traces
Static stackStatic captureStatic fromJSONRuntime decoding of JSON POJO to exception instance
When overriding this, you cannot use super.fromJSON
You must write it fully, and use the same type-hacks
to support polymorphic this in static methods
https://github.com/microsoft/TypeScript/issues/5863
Generated using TypeDoc
Exception to be thrown during parsing failure This is not part of the Polykey exception hierarchy This is because it plain exception wrapper parsing error data While JS allows us to throw POJOs directly, having a nominal type is easier to check against