Skip to content

LocationException

INCLUDE FILE
#include <tpau-cpp-kernal/LocationException.h>

class LocationException

Kernal exceptions with location.

DEFINITION
class LocationException;

constructor LocationException

DEFINITION
LocationException ( );

constructor LocationException

Create a location exception from an existing exception.

DEFINITION
LocationException ( Location  location,
const Exception & exception );
PARAMETERDESCRIPTION
location

The location of the exception.

exception

The existing exception.

constructor LocationException

Create an exception with a formatted message.

DEFINITION
template <typename...Args>
LocationException ( Location  location,
std::format_string< Args... >  format,
Args &&...  args );
PARAMETERDESCRIPTION
location

The location of the exception.

format

The format string for the message.

args

The arguments for the format string.

constructor LocationException

Create an exception with a message.

DEFINITION
LocationException ( Location  location,
const std::string_view  message );
PARAMETERDESCRIPTION
location

The location of the exception.

message

The message for the exception.

member location

The location of the exception.

DEFINITION
Location  location;