2 #include "system_exception.h" 73 const char* default_message()
const {
return "Index was outside the bounds of the array."_t;}
Defines the base class for predefined exceptions in the xtd namespace.
Definition: system_exception.h:17
index_out_of_range_exception(const std::exception &inner_exception, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class index_out_of_range_exception.
Definition: index_out_of_range_exception.h:41
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:31
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
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
index_out_of_range_exception(const std::string &message, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class index_out_of_range_exception.
Definition: index_out_of_range_exception.h:21
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:36
static xtd::caller_info empty() noexcept
Return an empty caller info.
Definition: caller_info.h:32
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:52
caller_info information class is used to store current file, current line and current function inform...
Definition: caller_info.h:14
index_out_of_range_exception(const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class index_out_of_range_exception.
Definition: index_out_of_range_exception.h:17
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:26
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:46
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:58
The exception that is thrown when an attempt is made to access an element of an array with an index t...
Definition: index_out_of_range_exception.h:12
index_out_of_range_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 index_out_of_range_exception.
Definition: index_out_of_range_exception.h:65