2 #include "arithmetic_exception.h" 73 const char* default_message()
const {
return "Arithmetic operation resulted in an overflow."_t;}
The exception that is thrown for errors in an arithmetic, casting, or conversion operation.
Definition: arithmetic_exception.h:12
virtual const std::string & help_link() const noexcept
Gets a link to the help file associated with this exception.
Definition: system_exception.h:87
virtual exception_ref inner_exception() const noexcept
Gets the exception instance that caused the current exception.
Definition: system_exception.h:99
virtual const std::string & message() const noexcept
Get message associate to the exception.
Definition: system_exception.h:111
overflow_exception(const std::string &message, const std::error_code &error, const std::string &help_link, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:36
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:15
virtual std::error_code error() const noexcept
Get error associate to the exception.
Definition: system_exception.h:95
overflow_exception(const std::string &message, const std::exception &inner_exception, const std::string &help_link, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:58
overflow_exception(const std::string &message, const std::error_code &error, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:26
static xtd::caller_info empty() noexcept
Return an empty caller info.
Definition: caller_info.h:32
overflow_exception(const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:17
caller_info information class is used to store current file, current line and current function inform...
Definition: caller_info.h:14
The exception that is thrown when an arithmetic, casting, or conversion operation in a checked contex...
Definition: overflow_exception.h:12
overflow_exception(const std::string &message, const std::string &help_link, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:31
overflow_exception(const std::exception &inner_exception, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:41
overflow_exception(const std::string &message, const std::exception &inner_exception, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:46
overflow_exception(const std::string &message, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:21
overflow_exception(const std::string &message, const std::exception &inner_exception, const std::error_code &error, const std::string &help_link, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:65
overflow_exception(const std::string &message, const std::exception &inner_exception, const std::error_code &error, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class overflow_exception.
Definition: overflow_exception.h:52