On this page
article
peary::utils::LogicError
peary::utils::LogicError
Exception class for logic errors. More…
#include <peary/utils/exceptions.hpp>
Inherits from peary::utils::Exception, std::exception
Inherited by peary::utils::InvalidArgumentError, peary::utils::MissingImplementationError
Public Functions
| Name | |
|---|---|
| LogicError(std::string what_arg)Constructor for LogicError. |
Protected Functions
| Name | |
|---|---|
| LogicError() =defaultDefault constructor for LogicError. |
Additional inherited members
Public Functions inherited from peary::utils::Exception
| Name | |
|---|---|
| Exception(std::string what_arg)Constructor for Exception. | |
| const char * | what() const overrideReturn the error message. |
Protected Functions inherited from peary::utils::Exception
| Name | |
|---|---|
| Exception() =defaultDefault constructor for Exception. |
Protected Attributes inherited from peary::utils::Exception
| Name | |
|---|---|
| std::string | _message |
Detailed Description
class peary::utils::LogicError;
Exception class for logic errors.
This class is used to represent errors that occur due to incorrect logic in the program. These errors could potentially be avoided by specialized compile-safe design
Public Functions Documentation
function LogicError
inline explicit LogicError(
std::string what_arg
)
Constructor for LogicError.
Parameters:
- what_arg The error message to be associated with the exception
Protected Functions Documentation
function LogicError
LogicError() =default
Default constructor for LogicError.
Updated on 2025-11-14 at 11:31:23 +0100