solver  1.0
Public Member Functions | Protected Attributes | List of all members
InvalidDatasetFile Class Reference

Thrown if the dataset file contains ill-specified robotic cells. More...

#include <Exceptions.h>

+ Inheritance diagram for InvalidDatasetFile:
+ Collaboration diagram for InvalidDatasetFile:

Public Member Functions

 InvalidDatasetFile (const std::string &caller, const std::string &msg, int64_t lineNumber=-1)
 Constructs a specialized exception for error handling of ill-specified datasets. More...
 
- Public Member Functions inherited from SolverException
 SolverException (const std::string &caller, const std::string &msg)
 Constructs the exception, it comprises building of the error string and vector of lines. More...
 
virtual const char * what () const throw ()
 Virtual method returns the error message without an indentation.
 
virtual std::string whatIndented (uint32_t level=0) const throw ()
 Virtual function returning the formatted error message. More...
 
virtual ~SolverException () throw ()
 Virtual destructor is mandatory due to the polymorphism.
 

Protected Attributes

int64_t mLineNumber
 Error occurred at this line in the XML file.
 
- Protected Attributes inherited from SolverException
std::string mWhatStr
 The formated error message without an indentation.
 
std::vector< std::string > mWhat
 Individual lines of the error message.
 

Detailed Description

Thrown if the dataset file contains ill-specified robotic cells.

This exception is typically thrown if a dataset file is invalid, i.e. invalid format of the XML file or incorrectly specified robotic cells. The exception adds the possibility to state the line number in the XML file where the error/inconsistency occurs.

Definition at line 99 of file Exceptions.h.

Constructor & Destructor Documentation

InvalidDatasetFile::InvalidDatasetFile ( const std::string &  caller,
const std::string &  msg,
int64_t  lineNumber = -1 
)
inline

Constructs a specialized exception for error handling of ill-specified datasets.

Parameters
callerString representation of the method in which this exception was thrown.
msgExplanation of a problem in the dataset.
lineNumberAt which line of XML file the problem occurs.
Note
To ease the filling of the caller, an ugly but incredibly useful macro caller() is available.

Definition at line 108 of file Exceptions.h.


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