NAG CPP Interface
error_handler::ErrorHandlerControl

 #include "include/utility/nagcpp_error_handler.hpp"

 class ErrorHandlerControl

1 Description

A class that holds error handling control arguments that can be set globally.

2 Variables

2.1Public Variables

error_handler_type ErrorHandlerType Scalar
This is used to indicate the error handling behaviour.
ThrowNothing
Warnings and errors that are returned by the algorithmic engine will not throw any exception. Error handling must be done via the ErrorHandler class.
It should be noted that setting this value does not guarantee that no exceptions will be thrown it just suppresses those that would have been thrown via ErrorHandler.
ThrowErrors
Errors that are returned by the algorithmic engine will cause an exception to be thrown. Warnings will not. The checking of warnings must be done via the ErrorHandler class.
ThrowAll
Both warnings and errors that are returned by the algorithmic engine will be thrown as exceptions.
In the case of a warning all output arguments will have been set prior to the exception being raised. For a non-void function the return value can be accessed via WarningException::return_value.
In the case of an error, all output arguments are undefined.

3 Methods