|
| error (std::string msg) |
| Constructs an exception with an optional message.
|
|
std::string | className () const override |
| Returns the class name as string.
|
|
std::string | message () const noexcept |
|
const char * | what () const noexcept override |
| Returns the full error message.
|
|
virtual std::string | toString (bool enter) const |
| Generates formatted string representation.
|
|
| operator std::string () const |
| Explicit conversion to std::string.
|
|
| operator const char * () const |
| Explicit conversion to C-style string.
|
|
const char * | toCString (bool enter) const |
| Direct C-string access with formatting control.
|
|
template<typename TYPE > |
auto | formatString (const TYPE &t) -> std::string |
|
template<typename TYPE > |
auto | formatCString (const TYPE &t) -> const char * |
|
template<typename TYPE > |
auto | formatEnum (const TYPE &t) -> std::string |
|
template<typename TYPE > |
auto | formatString (TYPE *const &ptr) -> std::string |
|
|
template<typename TYPE > |
static std::string | formatString (const TYPE &t) |
| Universal value-to-string conversion.
|
|
template<Printable TYPE> |
static std::string | formatString (const TYPE &t) |
| Specialization for printable types.
|
|
template<EnumType TYPE> |
static std::string | formatString (const TYPE &t) |
| Specialization for enum types.
|
|
template<typename TYPE > |
static std::string | formatString (TYPE *const &ptr) |
| Pointer-specific formatting.
|
|
template<typename TYPE > |
static const char * | formatCString (const TYPE &t) |
| C-string cache for temporary usage.
|
|
template<typename TYPE > |
static std::string | formatEnum (const TYPE &t) |
| Enum formatting utility.
|
|
template<> |
auto | formatString (const char &t) -> std::string |
|
template<> |
auto | formatString (const bool &t) -> std::string |
|
template<> |
auto | formatString (const char *const &ptr) -> std::string |
|
Base class for all exceptions in the Original project.
Inherits from std::exception and implements the printable interface for custom formatting.
- Note
- All exceptions in Original should inherit from this class to maintain consistent error handling behavior across the codebase.