17 #ifndef COM_BORA_SOFTWARE__BALAU_EXCEPTION__CONTAINER_EXCEPTIONS 18 #define COM_BORA_SOFTWARE__BALAU_EXCEPTION__CONTAINER_EXCEPTIONS 28 public:
const size_t index;
34 public:
IndexOutOfRangeException(
const char * file,
int line,
const std::string & st,
const std::string & text,
size_t index_)
47 public:
EmptyException(
const char * file,
int line,
const std::string & st,
const std::string & text)
55 public:
SizeException(
const char * file,
int line,
const std::string & st,
const std::string & text)
65 public:
ItemExistsException(
const char * file,
int line,
const std::string & st, T item_,
const std::string & text)
85 public:
const T item1;
86 public:
const U item2;
96 #endif // COM_BORA_SOFTWARE__BALAU_EXCEPTION__CONTAINER_EXCEPTIONS bool operator==(const BalauException &lhs, const BalauException &rhs)
Base class comparison function for Balau exceptions.
Definition: BalauException.hpp:112
All exception classes.
Definition: BalauException.hpp:50
Thrown when a non-existent relationship between two items is requested.
Definition: ContainerExceptions.hpp:84
Thrown when an attempt is made to add an existing item to a container.
Definition: ContainerExceptions.hpp:62
Balau::U8String< AllocatorT > toString(const BalauException &e)
Base class toString<AllocatorT> function for Balau exceptions.
Definition: BalauException.hpp:122
Thrown when a request is made for an element but no elements are available.
Definition: ContainerExceptions.hpp:46
Thrown when an invalid size is supplied or detected.
Definition: ContainerExceptions.hpp:54
Thrown when an attempt is made to remove a non-existing item in a container.
Definition: ContainerExceptions.hpp:73
const std::string message
The message.
Definition: BalauException.hpp:59
Thrown when a specified index is not in the valid range.
Definition: ContainerExceptions.hpp:27
Base Balau exception classes.
Base class of all Balau exceptions.
Definition: BalauException.hpp:55