kind property

JsErrorKind get kind

Framework category used for recovery and reporting decisions.

Implementation

JsErrorKind get kind => switch (this) {
  JsThrownException() => JsErrorKind.javascript,
  JsValueConversionException() => JsErrorKind.valueConversion,
  JsTimeoutException() => JsErrorKind.timeout,
  JsCancelledException() => JsErrorKind.cancelled,
  JsQueueFullException() => JsErrorKind.queueFull,
  JsRuntimeClosedException() => JsErrorKind.runtimeClosed,
  JsRuntimeCrashException() => JsErrorKind.runtimeCrash,
  JsOutOfMemoryException() => JsErrorKind.outOfMemory,
  JsStackOverflowException() => JsErrorKind.stackOverflow,
};