TCLAP::ArgException Class Reference

#include <ArgException.h>

Inheritance diagram for TCLAP::ArgException:
exception TCLAP::ArgParseException TCLAP::CmdLineParseException TCLAP::SpecificationException

List of all members.

Public Member Functions

 ArgException (const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")
std::string argId () const
std::string error () const
std::string typeDescription () const
const charwhat () const throw ()
virtual ~ArgException () throw ()

Private Attributes

std::string _argId
std::string _errorText
std::string _typeDescription

Detailed Description

A simple class that defines and argument exception. Should be caught whenever a CmdLine is created and parsed.


Constructor & Destructor Documentation

TCLAP::ArgException::ArgException ( const std::string &  text = "undefined exception",
const std::string &  id = "undefined",
const std::string &  td = "Generic ArgException" 
) [inline]

Constructor.

Parameters:
text - The text of the exception.
id - The text identifying the argument source.
td - Text describing the type of ArgException it is. of the exception.
virtual TCLAP::ArgException::~ArgException (  )  throw () [inline, virtual]

Destructor.


Member Function Documentation

std::string TCLAP::ArgException::argId (  )  const [inline]

Returns the argument id.

References _argId.

Referenced by TCLAP::StdOutput::failure(), main(), and parseOptions().

std::string TCLAP::ArgException::error (  )  const [inline]

Returns the error text.

References _errorText.

Referenced by TCLAP::StdOutput::failure(), main(), and parseOptions().

std::string TCLAP::ArgException::typeDescription (  )  const [inline]

Returns the type of the exception. Used to explain and distinguish between different child exceptions.

References _typeDescription.

const char* TCLAP::ArgException::what (  )  const throw () [inline]

Returns the arg id and error text.

References _argId, and _errorText.

Referenced by TCLAP::XMLOutput::failure(), TCLAP::DocBookOutput::failure(), and MyOutput::failure().


Member Data Documentation

std::string TCLAP::ArgException::_argId [private]

The argument related to this exception.

Referenced by argId(), and what().

std::string TCLAP::ArgException::_errorText [private]

The text of the exception message.

Referenced by error(), and what().

Describes the type of the exception. Used to distinguish between different child exceptions.

Referenced by typeDescription().


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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1