Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


Public Member Functions | List of all members
libevocosm::validation_error< Type > Class Template Reference

Standard validation exception. More...

#include <validator.h>

Inheritance diagram for libevocosm::validation_error< Type >:

Public Member Functions

 validation_error (const Type &object, const string &details=string())
 Constructor. More...
 

Detailed Description

template<typename Type>
class libevocosm::validation_error< Type >

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.

Version
1.0.0
Date
1 May 2002

Constructor & Destructor Documentation

template<typename Type>
libevocosm::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).

Parameters
objectThe erroneous object that failed validation
detailsA string providing detailed information about the validation failure

The documentation for this class was generated from the following file:

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.