Creates an instance of VattenfallServiceError.
Optional
Readonly
dataHolds the ErrorReport returned by the server.
Optional
stackOptional
Readonly
status_Represents the StatusCode provided by the server.
Static
Optional
prepareOptional override for formatting stack traces
Static
stackRetrieves the error code associated with the current instance.
The error code if available, otherwise undefined.
Retrieves the technical description from the data object, if available.
The technical description or undefined if it is not present.
Retrieves the user description.
The user description if available, otherwise undefined.
Checks if the current error instance is due to a token expiration.
This method verifies if the error is associated with an access
denial caused by an expired token. It does this by checking if
the status_code
is "ACCESS_DENIED" and if the Code
attribute
within the data
object is "ERROR_TOKEN_EXPIRED".
True if the error is due to an expired token, false otherwise.
Static
capture
Class representing an error from the Vattenfall service. Extends the native
Error
class and adds additional properties and methods to handle specific error scenarios related to the Vattenfall service.