CdError

CdError

Script's custom error class.

Constructor

new CdError(dataopt)

Source:

Create a custom error.

Parameters:
Name Type Attributes Description
data object <optional>
Properties
Name Type Attributes Description
type 'network' | 'api' | 'parse' | 'internal'

Grouping of the error.

code string <optional>

Error code.

apiResp object <optional>

API response.

details object <optional>

Additional details.

Extends

  • Error