Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OutcomeFailure

It represent an operation result that has failed.

example
{
  outcome: "FAILURE",
  errorCode: "COUNTER_INIT_FAILED",
  reason: "Counter allow only positive numbers",
  data: {
    initialCount,
  },
};

Hierarchy

  • OutcomeFailure

Index

Properties

data

data: any

You can put anything usefull to understand the error. You should not let it to any and type it in your implementation.

errorCode

errorCode: string

It's a specific error code relative to the error.

outcome

outcome: "FAILURE"

reason

reason: string

The explanation why the error happened.

Generated using TypeDoc