Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
hgps::core::HgpsException Class Reference

HealthGPS base exception class, with source location information. More...

#include <exception.h>

Inheritance diagram for hgps::core::HgpsException:
[legend]
Collaboration diagram for hgps::core::HgpsException:
[legend]

Public Member Functions

 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.

Detailed Description

HealthGPS base exception class, with source location information.

Constructor & Destructor Documentation

◆ HgpsException()

hgps::core::HgpsException::HgpsException ( const std::string & what_arg,
const source_location location = source_location::current() )

Construct a new HgpsException.

Parameters
what_argThe exception message
locationSource location (defaults to current location)
Here is the call graph for this function:

Member Function Documentation

◆ column()

std::uint_least32_t hgps::core::HgpsException::column ( ) const
constexprnoexcept

Gets the exception source location column.

Returns
The location column

◆ file_name()

const char * hgps::core::HgpsException::file_name ( ) const
constexprnoexcept

Gets the exception source location file name.

Returns
The location file name
Here is the caller graph for this function:

◆ function_name()

const char * hgps::core::HgpsException::function_name ( ) const
constexprnoexcept

Gets the exception source location function name.

Returns
The location function name

◆ line()

std::uint_least32_t hgps::core::HgpsException::line ( ) const
constexprnoexcept

Gets the exception source location line.

Returns
The location line
Here is the caller graph for this function:

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