Fork me on GitHub
Show:

APIResponseError

Summary

Item Index

Properties

Methods

setMessage

Syntax

setMessage

(
  • message
)
String

Summary

Set the error message

Parameters:

  • message String

    Message passed into constructor.

Returns:

String:

Error message.

setName

Syntax

setName

() String

Summary

Set the name of the error.

Returns:

String:

Error name.

toString

Syntax

toString

() String

Summary

Determines how error is displayed in (some) browser consoles

Returns:

Properties

message

Syntax

message

String

Summary

The error message to throw.

name

Syntax

name

String

Summary

The error's name. Should equal the class name, by convention.