Edit in GitHubLog an issue

cc-everywhere


Class: CCEverywhereError<T>

Extends

  • Error

Type Parameters

Type Parameter
T

Constructors

Constructor

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

Copied to your clipboard
Error.constructor

Accessors

code

Get Signature

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 © 2025 Adobe. All rights reserved.