NAG CPP Interface
error_handler::ErrorHandlerType

 Contents

Settings help

CPP Name Style:


 #include "include/utility/nagcpp_error_handler.hpp"

 enum ErrorHandlerType

1 Description

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.