Exception class with file information. Base class of all custom exception classes.
More...
#include <hueplusplus/HueException.h>
Exception class with file information. Base class of all custom exception classes.
◆ HueException() [1/2]
hueplusplus::HueException::HueException |
( |
FileInfo |
fileInfo, |
|
|
const std::string & |
message |
|
) |
| |
Creates HueException with information about the error and source.
- Parameters
-
fileInfo | Source of the error. Must not always be the throw location, can also be a calling function which matches the cause better. |
message | Human readable error message. |
◆ HueException() [2/2]
hueplusplus::HueException::HueException |
( |
const char * |
exceptionName, |
|
|
FileInfo |
fileInfo, |
|
|
const std::string & |
message |
|
) |
| |
|
protected |
Creates HueException with child class name.
Should be used by subclasses which can append additional information to the end of whatMessage.
- Parameters
-
exceptionName | class name of the subclass |
fileInfo | Source of the error. Must not always be the throw location, can also be a calling function which matches the cause better. |
message | Human readable error message |
◆ GetFile()
const FileInfo & hueplusplus::HueException::GetFile |
( |
| ) |
const |
|
noexcept |
Filename and line where the exception was thrown or caused by.
◆ what()
const char * hueplusplus::HueException::what |
( |
| ) |
const |
|
overridenoexcept |
What message of the exception.
- Returns
- exception name, file info and constructor message as char* into member string
The documentation for this class was generated from the following files: