DetailedError

View on Github

An error with generic error details.

Error details can be extracted depending on the type of D. For instance, if the type of D is string[], you can do this:

function handleError(err: IDetailedError<string[]>) {
  for (let i in err.details) {
    console.error('got error code: ' + i);
  }
}

Properties

messagestring

The error message.

detailsD

The error details.

Services

    API

      General