Class exception

Inheritance Relationships

Base Type

  • public exception

Class Documentation

class exception : public exception

exception indicating a parse error

This exception is thrown by the library when error occurs. These errors can occur during the deserialization of JSON text, CURL, as well as when using invalid Arguments.

Exceptions have ids 1xx.

Public Types

enum errorType

Enum for Error Type.

Values:

AIAA_SERVER_ERROR = 101
RESPONSE_PARSE_ERROR = 102

Failed to communicate to AIAA Server.

ITK_PROCESS_ERROR = 103

Failed to parse AIAA Server Response.

INVALID_ARGS_ERROR = 104

Failed to process ITK Operations.

SYSTEM_ERROR = 105

Invalid Arguments.

Public Functions

const char *what() const

returns the explanatory string

exception(errorType id_, const char *what_arg)

Construct exception.

std::string name() const

String version of error.

Public Members

const std::string messages[5]

= { “Failed to communicate to AIAA Server”, “Failed to parse AIAA Server Response”,

“Failed to process ITK Operations”, “Invalid Arguments”, “System/Unknown Error” }


Message String for each enum type.

errorType id = SYSTEM_ERROR

the id of the exception