96 template <
typename value_t>
104 template <
typename value_t>
112 template <
typename value_t>
120 template <
typename value_t>
128 template <
typename value_t>
135 template <
typename value_t>
142 template <
typename value_t>
150 template <
typename value_t>
157 template <
typename value_t>
164 template <
typename value_t>
171 template <
typename value_t>
176 const char* default_message() const noexcept {
return "Specified argument is out of range of valid values."_t;}
Contains xtd::argument_exception exception.
The exception that is thrown when one of the arguments provided to a method is not valid.
Definition argument_exception.h:24
The exception that is thrown when one of the arguments provided to a method is out of range.
Definition argument_out_of_range_exception.h:23
argument_out_of_range_exception(const xtd::string &message, const std::exception &inner_exception, const xtd::string &help_link, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:72
static void throw_if_zero(const value_t &value, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is zero.
Definition argument_out_of_range_exception.h:172
argument_out_of_range_exception(const xtd::string &message, const std::error_code &error, const xtd::string &help_link, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:50
argument_out_of_range_exception(const xtd::string &message, const xtd::string &help_link, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:45
argument_out_of_range_exception(const xtd::string &message, const std::exception &inner_exception, const std::error_code &error, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:66
static void throw_if_positive_or_zero(const value_t &value, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is positive or zero.
Definition argument_out_of_range_exception.h:165
static void throw_if_greater_than(const value_t &value, const value_t &other, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is greater than other.
Definition argument_out_of_range_exception.h:121
static void throw_if_negative(const value_t &value, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is negative.
Definition argument_out_of_range_exception.h:136
static void throw_if_negative_or_zero(const value_t &value, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is negative or zero.
Definition argument_out_of_range_exception.h:143
argument_out_of_range_exception(const xtd::string &message, const std::exception &inner_exception, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:60
static void throw_if_greater_than_or_equal(const value_t &value, const value_t &other, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is greater than or equal to other.
Definition argument_out_of_range_exception.h:129
static void throw_if_less_than(const value_t &value, const value_t &other, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is less than other.
Definition argument_out_of_range_exception.h:105
argument_out_of_range_exception(const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:35
argument_out_of_range_exception(const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:31
argument_out_of_range_exception(const std::exception &inner_exception, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:55
argument_out_of_range_exception(const xtd::string &message, const std::exception &inner_exception, const std::error_code &error, const xtd::string &help_link, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:79
static void throw_if_less_than_or_equal(const value_t &value, const value_t &other, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is less than or equal to other.
Definition argument_out_of_range_exception.h:113
static void throw_if_positive(const value_t &value, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is positive.
Definition argument_out_of_range_exception.h:158
argument_out_of_range_exception(const xtd::string &message, const std::error_code &error, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::argument_out_of_range_exception.
Definition argument_out_of_range_exception.h:40
static void throw_if_equal(const value_t &value, const value_t &other, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is equal to other.
Definition argument_out_of_range_exception.h:97
static void throw_if_not_equal(const value_t &value, const value_t &other, const xtd::string ¶m_name=xtd::string::empty_string, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Throws an xtd::argument_out_of_range_exception if value is not equal to other.
Definition argument_out_of_range_exception.h:151
Represents text as a sequence of character units.
Definition basic_string.h:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:47
static stack_frame current(const xtd::source_location &value=xtd::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
virtual const xtd::string & message() const noexcept
Gets message associate to the exception.
virtual exception_ref inner_exception() const noexcept
Gets the exception instance that caused the current exception.
virtual const xtd::string & help_link() const noexcept
Gets a link to the help file associated with this exception.
@ other
The operating system is other.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10