Documentation / @ember-data/adapter / error / ServerError
Defined in: packages/adapter/src/error.js:339
A ServerError
equates to a HTTP 500 Internal Server Error
response status. It is used by the adapter to indicate that a request has failed because of an error in the external API.
ServerError
ts
class ServerError(errors, message): void;
Defined in: packages/adapter/src/error.js:339
A ServerError
equates to a HTTP 500 Internal Server Error
response status. It is used by the adapter to indicate that a request has failed because of an error in the external API.
ServerError
Parameters
errors
any
message
any
Returns
void
Properties
extend()
ts
static extend: (__namedParameters) => {
(errors, message): void;
extend: ({ message: defaultMessage }?: {}) => { (errors: any, message: any): void; prototype: any; extend: ...; };
prototype: any;
};
Defined in: packages/adapter/src/error.js:112
Parameters
__namedParameters
Returns
ts
(errors, message): void;
Parameters
errors
any
message
any
Returns
void
extend
ts
extend: ({ message: defaultMessage }?: {}) => { (errors: any, message: any): void; prototype: any; extend: ...; };
prototype
ts
prototype: any;