ldas-tools-al  2.6.3
Classes | Functions
LDASTools::Error Namespace Reference

Classes

class  unimplemented_error
 Exception class for unimplemented functionality. More...
 

Functions

template<class T >
void toss (const std::string &ClassName, const std::string &Filename, int LineNumber, const std::string &Description)
 Helper function for throwing standard exceptions. More...
 

Function Documentation

◆ toss()

template<class T >
void LDASTools::Error::toss ( const std::string &  ClassName,
const std::string &  Filename,
int  LineNumber,
const std::string &  Description 
)

Helper function for throwing standard exceptions.

Parameters
[in]ClassNameThe class throwing the exception, as a string.
[in]FilenameThe program unit where the exception is thrown
[in]LineNumberThe line number in the file where exception is thrown
[in]DescriptionA short description of the exceptional condition

This function simplifies the addition of key debugging information when throwing an exception. The availability of the information to the developer greatly increases the developer's ability to trouble shoot problems.