Created by Scott Robert Ladd at Coyote Gulch Productions.
Standard validation exception. More...
#include <validator.h>
Inherits runtime_error.
This is the standard exception thrown for validation failures. By deriving from the Standard C++ exception runtime_error, validation error is caught by generic catch (std::exception) blocks or more specific exception handlers.
libcoyotl::validation_error< Type >::validation_error | ( | const Type & | object, |
const string & | details = string() |
||
) | [inline] |
Constructs a validation_error from an object and an optional detail string. The resulting error message -- retrieved via the what() method inherited from runtime_error -- contains the type of object, it's content, and the test of the detail string (if one is provided).
object | The erroneous object that failed validation |
details | A string providing detailed information about the validation failure |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.