DeckErrorEvent: {
    error: Error;
    message: string;
    type: "exception";
}

Event that fires when an unrecoverable error occurred.

Type declaration

  • error: Error
  • message: string
  • type: "exception"

Emits

ErrorEvent of type exception with detail { error: Error, message: string }

Example

.addEventListener('exception', (event) =>
console.log("An unrecoverable error exception occurred. The error is", event.error)
)