The ClientError
is thrown whenever an error occurs while a Scrivito application communicates with a backend service, e.g., while an index callback of a DataClass
is being executed.
The ClientError
is thrown whenever an error occurs while a Scrivito application communicates with a backend service, e.g., while an index callback of a DataClass
is being executed.
Properties
message
(String
) – error message.code
(String
) – technical error identifier.httpStatus
(Number
or null
) – HTTP status code of the erroneous response if available. Otherwise null
is returned.details
(Object
) – a JavaScript Object
containing error details if provided by the server. Otherwise, an empty object ({}
) is returned.