AIRI Server API - v0.10.2
Preparing search index...
server-shared/src
parseServerErrorMessage
Function parseServerErrorMessage
parseServerErrorMessage
(
message
:
string
)
:
ParsedServerErrorMessage
Parses a server error message and classifies it.
Use when:
Receiving error messages from the server
Determining whether to retry or give up
Checking if the error is authentication-related
Expects:
Message string that matches one of ServerErrorMessages or starts with 'invalid JSON, error: '
Returns:
Parsed error with classification (code, authentication, recoverable, terminal)
Parameters
message
:
string
Returns
ParsedServerErrorMessage
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
AIRI Server API - v0.10.2
Loading...
Parses a server error message and classifies it.
Use when:
Expects:
Returns: