NAG CPP Interface
error_handler::Exception

Settings help

CPP Name Style:


 #include "include/utility/nagcpp_error_handler.hpp"

 class Exception : std::exception

1 Description

The base class for all exceptions thrown by the algorithmic engine.

2 Variables

2.1Public Variables

category ErrorCategory Scalar
This enumerator indicates whether an error or warning has been raised.
None
No error or warning was raised.
Error
An error was raised.
Warning
A warning was raised.
errorid types::f77_integer Scalar
A numeric error code associated with the exception. This error code will be the one listed in the function documentation for fun_name.
fun_name std::string Scalar
Name of the NAG CPP Interface function that threw the exception.
ierr types::f77_integer Scalar
Additional (undocumented) numeric codes associated with the exception.
ifmt types::f77_integer Scalar
Additional (undocumented) numeric codes associated with the exception. If contacting NAG concerning this particular exception please quote this information, along with the value of ierr and errorid in any correspondance.
msg std::string Scalar
Description of the exception.
type ErrorType Scalar
This enumerator indicates the type of error / warning raised.
MemoryError
The raised error indicates some issue during memory allocation.
LicenceError
The raised error indicates an issue with the licence of the NAG Library.
UnexpectedError
The raised error was not expected. Please contact NAG via the NAG Technical Support Service with details of the error message and what you were doing when it occurred.
CallbackError
The error was raised in a callback.
GeneralError
The error was raised by the algorithmic engine, and no more descriptive type was appropriate.
GeneralWarning
The warning was raised by the algorithmic engine, and no more descriptive type was appropriate.
GenericError
As per ErrorType::GeneralError, but the error was raised by the wrapper as opposed to the algorithmic engine.
NoError
No error or warning was raised.

3 Methods

const char*  Exception::what() const