Optional
message: stringOptional
options: { Optional
cause?: TOptional
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
If you get this exception, this means within the same
Monitor
instance, you tried to lock a read on a key that is already locked for write, or you tried to lock a write on a key that is already locked for read. This is not supported because to do so would imply a lock upgrade from read to write or from write to read.