Skip to content

datatypes::exceptions::ExceptionUtilities

#include <exception_utilities.h>

Public Functions

Name
void ThrowInvalidArgument(const string & msg ="Invalid argument")
void ThrowInvalidOperation(const string & msg ="Invalid operation")
void ThrowInvalidArgumentModelVariableId(const string & variableId)
void ThrowNotImplemented(const string & msg ="Not implemented")
void ThrowNotSupported(const string & typeName, const string & methodName)
void ThrowNotSupported(const string & msg)
void ThrowOutOfRange(const string & msg ="Operation led to a state out of range")
template <typename T >
void
CheckInRange(T value, T min, T max, const string & variableName)
void CheckFileExists(const boost::filesystem::path & p)
void CheckFileDoesNotExist(const boost::filesystem::path & p)
void CheckExists(const boost::filesystem::path & p)

Public Functions Documentation

function ThrowInvalidArgument

static inline void ThrowInvalidArgument(
    const string & msg ="Invalid argument"
)

function ThrowInvalidOperation

static inline void ThrowInvalidOperation(
    const string & msg ="Invalid operation"
)

function ThrowInvalidArgumentModelVariableId

static inline void ThrowInvalidArgumentModelVariableId(
    const string & variableId
)

function ThrowNotImplemented

static inline void ThrowNotImplemented(
    const string & msg ="Not implemented"
)

function ThrowNotSupported

static inline void ThrowNotSupported(
    const string & typeName,
    const string & methodName
)

function ThrowNotSupported

static inline void ThrowNotSupported(
    const string & msg
)

function ThrowOutOfRange

static inline void ThrowOutOfRange(
    const string & msg ="Operation led to a state out of range"
)

function CheckInRange

template <typename T >
static inline void CheckInRange(
    T value,
    T min,
    T max,
    const string & variableName
)

function CheckFileExists

static inline void CheckFileExists(
    const boost::filesystem::path & p
)

function CheckFileDoesNotExist

static inline void CheckFileDoesNotExist(
    const boost::filesystem::path & p
)

function CheckExists

static inline void CheckExists(
    const boost::filesystem::path & p
)

Updated on 2022-08-21 at 18:10:33 +1000