Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Member Functions | Private Attributes
TCLAP::ArgParseException Class Reference

Detailed Description

Thrown from within the child Arg classes when it fails to properly parse the argument it has been passed.

Definition at line 147 of file ArgException.h.

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

Inheritance diagram for TCLAP::ArgParseException:
Inheritance graph

Public Member Functions

 ArgParseException (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...
 

Private Attributes

std::string _errorText
 The text of the exception message. More...
 
std::string _argId
 The argument related to this exception. More...
 
std::string _typeDescription
 Describes the type of the exception. More...
 

Constructor & Destructor Documentation

◆ ArgParseException()

TCLAP::ArgParseException::ArgParseException ( 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 156 of file ArgException.h.

Member Function Documentation

◆ argId()

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

Returns the argument id.

Definition at line 113 of file ArgException.h.

◆ error()

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

Returns the error text.

Definition at line 108 of file ArgException.h.

◆ 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 135 of file ArgException.h.

◆ what()

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

Returns the arg id and error text.

Definition at line 124 of file ArgException.h.

Member Data Documentation

◆ _argId

std::string TCLAP::ArgException::_argId
privateinherited

The argument related to this exception.

Definition at line 151 of file ArgException.h.

◆ _errorText

std::string TCLAP::ArgException::_errorText
privateinherited

The text of the exception message.

Definition at line 146 of file ArgException.h.

◆ _typeDescription

std::string TCLAP::ArgException::_typeDescription
privateinherited

Describes the type of the exception.

Used to distinguish between different child exceptions.

Definition at line 157 of file ArgException.h.




Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Tue Mar 3 09:15:16 UTC 2020