Main MRPT website > C++ reference for MRPT 1.5.3
List of all members | Public Member Functions
TCLAP::SpecificationException Class Reference

Detailed Description

Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.

same flag as another Arg, same name, etc.

Definition at line 175 of file ArgException.h.

#include <mrpt/otherlibs/tclap/ArgException.h>

Inheritance diagram for TCLAP::SpecificationException:
Inheritance graph

Public Member Functions

 SpecificationException (const std::string &text="undefined exception", const std::string &id="undefined")
 Constructor. More...
 
std::string error () const
 Returns the error text. More...
 
std::string argId () const
 Returns the argument id. More...
 
const char * what () const throw ()
 Returns the arg id and error text. More...
 
std::string typeDescription () const
 Returns the type of the exception. More...
 

Constructor & Destructor Documentation

◆ SpecificationException()

TCLAP::SpecificationException::SpecificationException ( const std::string &  text = "undefined exception",
const std::string &  id = "undefined" 
)
inline

Constructor.

Parameters
text- The text of the exception.
id- The text identifying the argument source of the exception.

Definition at line 184 of file ArgException.h.

Member Function Documentation

◆ argId()

std::string TCLAP::ArgException::argId ( ) const
inlineinherited

Returns the argument id.

Definition at line 77 of file ArgException.h.

References TCLAP::ArgException::_argId.

Referenced by TCLAP::StdOutput::failure().

◆ error()

std::string TCLAP::ArgException::error ( ) const
inlineinherited

Returns the error text.

Definition at line 72 of file ArgException.h.

References TCLAP::ArgException::_errorText.

Referenced by TCLAP::StdOutput::failure().

◆ typeDescription()

std::string TCLAP::ArgException::typeDescription ( ) const
inlineinherited

Returns the type of the exception.

Used to explain and distinguish between different child exceptions.

Definition at line 99 of file ArgException.h.

References TCLAP::ArgException::_typeDescription.

◆ what()

const char* TCLAP::ArgException::what ( ) const
throw (
)
inlineinherited

Returns the arg id and error text.

Definition at line 88 of file ArgException.h.

References TCLAP::ArgException::_argId, and TCLAP::ArgException::_errorText.

Referenced by TCLAP::DocBookOutput::failure().




Page generated by Doxygen 1.8.13 for MRPT 1.5.3 at Mon Oct 30 10:27:08 UTC 2017