An error object that can be returned from IPC listeners.

This will automatically be logged as a warning if the listener is not invoked because values can only be returned on invoke.

router.registerListener("example:alwaysError", () => {
// do something ...
return new Failure("An error has occured.");
})

Hierarchy

  • Error
    • Failure

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
message: string
name: string
stack?: string

Methods