Creates an instance of VattenfallServiceError.
Optional ReadonlydataHolds the ErrorReport returned by the server.
OptionalstackOptional Readonlystatus_Represents the StatusCode provided by the server.
Static OptionalprepareOptional override for formatting stack traces
StaticstackRetrieves 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.
Staticcapture
Class representing an error from the Vattenfall service. Extends the native
Errorclass and adds additional properties and methods to handle specific error scenarios related to the Vattenfall service.