TrueReality  v0.1.1912
trUtil::ExceptionInvalidParameter Class Reference

Exception used for methods invalid parameters. More...

#include <ExceptionInvalidParameter.cpp.h>

Inheritance diagram for trUtil::ExceptionInvalidParameter:
Collaboration diagram for trUtil::ExceptionInvalidParameter:

Public Member Functions

 ExceptionInvalidParameter (const std::string &message, const std::string &filename, unsigned int linenum)
 Constructor. More...
 
virtual ~ExceptionInvalidParameter ()
 Destructor. More...
 
- Public Member Functions inherited from trUtil::Exception
 Exception (const std::string &message, const std::string &filename, unsigned int linenum)
 Constructor - Initializes the exception and logs it. More...
 
virtual ~Exception ()
 Destructor. More...
 
const std::string & What () const
 The message to be displayed when this exception is thrown. More...
 
const std::string & File () const
 The filename associated with this exception. More...
 
unsigned int Line () const
 The line number associated with this exception. More...
 
std::string ToString () const
 Converts this exception to a string. More...
 
void Print () const
 Prints the exception to the console. More...
 
void LogException (trUtil::Logging::LogLevel level=trUtil::Logging::LogLevel::LOG_ERROR) const
 Logs the exception to the default logger. More...
 
void LogException (trUtil::Logging::LogLevel level, const std::string &loggerName) const
 Logs the exception to the following log level using the logger. More...
 
void LogException (trUtil::Logging::LogLevel level, trUtil::Logging::Log &logger) const
 Logs the exception to the following log level using the given logger. More...
 

Detailed Description

Exception used for methods invalid parameters.

Author
Maxim Serebrennik

Definition at line 37 of file ExceptionInvalidParameter.cpp.h.

Constructor & Destructor Documentation

◆ ExceptionInvalidParameter()

trUtil::ExceptionInvalidParameter::ExceptionInvalidParameter ( const std::string &  message,
const std::string &  filename,
unsigned int  linenum 
)

Constructor.

Parameters
messageThe message.
filenameFilename of the file.
linenumThe linenum.

Definition at line 27 of file ExceptionInvalidParameter.cpp.

◆ ~ExceptionInvalidParameter()

trUtil::ExceptionInvalidParameter::~ExceptionInvalidParameter ( )
inlinevirtual

Destructor.

Definition at line 57 of file ExceptionInvalidParameter.cpp.h.


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