Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


libevocosm::validation_error< Type > Class Template Reference

Standard validation exception. More...

#include <validator.h>

Inherits std::runtime_error.

List of all members.

Public Member Functions


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:
object The erroneous object that failed validation
details A 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.