HealthGPS base exception class, with source location information.
More...
#include <exception.h>
|
| | HgpsException (const std::string &what_arg, const source_location location=source_location::current()) |
| | Construct a new HgpsException.
|
| |
| constexpr std::uint_least32_t | line () const noexcept |
| | Gets the exception source location line.
|
| |
| constexpr std::uint_least32_t | column () const noexcept |
| | Gets the exception source location column.
|
| |
| constexpr const char * | file_name () const noexcept |
| | Gets the exception source location file name.
|
| |
| constexpr const char * | function_name () const noexcept |
| | Gets the exception source location function name.
|
| |
HealthGPS base exception class, with source location information.
◆ HgpsException()
| hgps::core::HgpsException::HgpsException |
( |
const std::string & |
what_arg, |
|
|
const source_location |
location = source_location::current() |
|
) |
| |
Construct a new HgpsException.
- Parameters
-
| what_arg | The exception message |
| location | Source location (defaults to current location) |
◆ column()
| constexpr std::uint_least32_t hgps::core::HgpsException::column |
( |
| ) |
const |
|
constexprnoexcept |
Gets the exception source location column.
- Returns
- The location column
◆ file_name()
| constexpr const char * hgps::core::HgpsException::file_name |
( |
| ) |
const |
|
constexprnoexcept |
Gets the exception source location file name.
- Returns
- The location file name
◆ function_name()
| constexpr const char * hgps::core::HgpsException::function_name |
( |
| ) |
const |
|
constexprnoexcept |
Gets the exception source location function name.
- Returns
- The location function name
◆ line()
| constexpr std::uint_least32_t hgps::core::HgpsException::line |
( |
| ) |
const |
|
constexprnoexcept |
Gets the exception source location line.
- Returns
- The location line
The documentation for this class was generated from the following files: