|
ORIGINAL
|
Exception for memory allocation failures. More...
#include <error.h>


Public Member Functions | |
| allocateError (std::string msg="") | |
| std::string | className () const override |
| Gets the class name for type identification. | |
| std::string | defaultMsg () const override |
| Provides default message when no custom message is supplied. | |
Public Member Functions inherited from original::error | |
| 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 |
| Generates formatted error message. | |
| const char * | what () const noexcept override |
| Returns the full error message. | |
Public Member Functions inherited from original::printable | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from original::printable | |
| template<typename TYPE > | |
| static std::string | formatString (const TYPE &t) |
| Universal value-to-string conversion with type-specific formatting. | |
| template<Printable TYPE> | |
| static std::string | formatString (const TYPE &t) |
| Specialization for types deriving from printable. | |
| template<EnumType TYPE> | |
| static std::string | formatString (const TYPE &t) |
| Specialization for enum types with type-safe formatting. | |
| template<typename TYPE > | |
| static std::string | formatString (TYPE *const &ptr) |
| Pointer-specific formatting with null safety. | |
| template<typename TYPE > | |
| static const char * | formatCString (const TYPE &t) |
| C-string cache for temporary usage with static storage. | |
| template<typename TYPE > | |
| static std::string | formatEnum (const TYPE &t) |
| Enum formatting utility with underlying value extraction. | |
| 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 |
Protected Attributes inherited from original::error | |
| std::string | msg_ |
Exception for memory allocation failures.
Thrown when memory allocation requests cannot be fulfilled by the system.
This exception typically indicates:
|
inlineoverridevirtual |
Gets the class name for type identification.
Override in derived classes to provide accurate type names.
Reimplemented from original::printable.
|
inlineoverridevirtual |
Provides default message when no custom message is supplied.
Reimplemented from original::error.