On this page
article
peary::utils::InvalidArgumentError
peary::utils::InvalidArgumentError
Exception class for invalid arguments. More…
#include <peary/utils/exceptions.hpp>
Inherits from peary::utils::LogicError, peary::utils::Exception, std::exception
Public Functions
| Name | |
|---|---|
| InvalidArgumentError(std::string_view func, std::string_view reason ="")Constructor for InvalidArgumentError. |
Additional inherited members
Public Functions inherited from peary::utils::LogicError
| Name | |
|---|---|
| LogicError(std::string what_arg)Constructor for LogicError. |
Protected Functions inherited from peary::utils::LogicError
| Name | |
|---|---|
| LogicError() =defaultDefault constructor for LogicError. |
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::InvalidArgumentError;
Exception class for invalid arguments.
This class is used to represent errors that occur when an invalid argument is passed to a function or method.
Public Functions Documentation
function InvalidArgumentError
inline explicit InvalidArgumentError(
std::string_view func,
std::string_view reason =""
)
Constructor for InvalidArgumentError.
Parameters:
- func The name of the function where the error occurred
- reason The reason to be associated with the exception
Updated on 2025-11-14 at 11:31:23 +0100