Edit in GitHubLog an issue

Class: CCEverywhereError<T>

Extends

  • Error

Type Parameters

Type Parameter
T

Constructors

new CCEverywhereError()

Copied to your clipboard
new CCEverywhereError<T>(
code,
message?,
subError?,
customData?): CCEverywhereError<T>

Constructor

Parameters

ParameterTypeDescription
code
T
The error code associated with this error.
message?
string
The message associated with this error.
subError?
string | number | Error
Source error or a number tell more about the error.
customData?
unknown
Any kind of custom data related to error, which is converted to valid JSON

Returns

CCEverywhereError<T>

Overrides

Error.constructor

Accessors

code

Copied to your clipboard
get code(): T

getter code

Returns

T

Methods

create()

Copied to your clipboard
static create<T>(
errorCodeMessage,
subError?,
customData?): CCEverywhereError<T>

Type Parameters

Type Parameter
T

Parameters

ParameterType
errorCodeMessage
subError?
string | number | Error
customData?
unknown

Returns

CCEverywhereError<T>


createErrorFromData()

Copied to your clipboard
static createErrorFromData<T>(data): CCEverywhereError<T>

Type Parameters

Type Parameter
T

Parameters

ParameterType
data

Returns

CCEverywhereError<T>


toData()

Copied to your clipboard
toData(): ErrorData<T>

Get a plain-object representation of the error..

Returns

ErrorData<T>


toString()

Copied to your clipboard
toString(): string

Get complete message

Returns

string

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.