Base class for all custom exception types. Forwards its message to std::runtime_error and saves the exception name and the call side source location information.
More...
#include <exceptions.hpp>
|
| | exception (const std::string &msg, std::string_view class_name="exception", source_location loc=source_location::current()) |
| | Construct a new exception forwarding the exception message to std::runtime_error. More...
|
| |
| const source_location & | loc () const noexcept |
| | Returns the information of the call side where the exception was thrown. More...
|
| |
| std::string | what_with_loc () const |
| | Returns a string containing the exception's what() message, the name of the thrown exception class, and information about the call side where the exception has been thrown. More...
|
| |
Base class for all custom exception types. Forwards its message to std::runtime_error and saves the exception name and the call side source location information.
◆ exception()
Construct a new exception forwarding the exception message to std::runtime_error.
- Parameters
-
| [in] | msg | the exception's what() message |
| [in] | class_name | the name of the thrown exception class |
| [in] | loc | the exception's call side information |
◆ loc()
Returns the information of the call side where the exception was thrown.
- Returns
- the exception's call side information (
[[nodiscard]])
◆ what_with_loc()
| std::string plssvm::exception::what_with_loc |
( |
| ) |
const |
Returns a string containing the exception's what() message, the name of the thrown exception class, and information about the call side where the exception has been thrown.
- Returns
- the exception's
what() message including source location information ([[nodiscard]])
The documentation for this class was generated from the following file: