The exception that is thrown when there is an attempt to divide an integral or decimal value by zero.
- Header
#include <xtd/divided_by_zero_exception>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following example demonstrates how to throw and catch an divided_by_zero_exception.
|
| | divided_by_zero_exception (const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const std::error_code &error, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const std::exception &inner_exception, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const std::exception &inner_exception, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
| | divided_by_zero_exception (const xtd::ustring &message, const std::exception &inner_exception, const std::error_code &error, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class divided_by_zero_exception. More...
|
| |
|
| using | exception_ref = std::optional< std::reference_wrapper< const std::exception > > |
| | Optional reference wrapper on std::exception. More...
|
| |
| | arithmetic_exception (const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const std::error_code &error, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const std::exception &inner_exception, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const std::exception &inner_exception, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | arithmetic_exception (const xtd::ustring &message, const std::exception &inner_exception, const std::error_code &error, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class arithmetic_exception. More...
|
| |
| | system_exception (const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const std::error_code &error, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const std::error_code &error, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const std::exception &inner_exception, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const std::exception &inner_exception, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const std::exception &inner_exception, const std::error_code &error, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const std::exception &inner_exception, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| | system_exception (const xtd::ustring &message, const std::exception &inner_exception, const std::error_code &error, const xtd::ustring &help_link, const xtd::diagnostics::stack_frame &information=xtd::diagnostics::stack_frame::empty()) |
| | Create a new instance of class system_exception. More...
|
| |
| virtual const xtd::ustring & | file_path () const noexcept |
| | Gets file path where exception occurred. More...
|
| |
| virtual const xtd::ustring & | help_link () const noexcept |
| | Gets a link to the help file associated with this exception. More...
|
| |
| virtual std::error_code | error_code () const noexcept |
| | Gets error associate to the exception. More...
|
| |
| virtual exception_ref | inner_exception () const noexcept |
| | Gets the exception instance that caused the current exception. More...
|
| |
| virtual uint32 | line_number () const noexcept |
| | Gets Line number where the exception occurred. More...
|
| |
| virtual const xtd::ustring & | member_name () const noexcept |
| | Gets file member where exception occurred. More...
|
| |
| virtual const xtd::ustring & | message () const noexcept |
| | Gets message associate to the exception. More...
|
| |
| virtual const xtd::ustring & | name () const noexcept |
| | Gets full class name the exception. More...
|
| |
| virtual xtd::ustring | stack_trace () const noexcept |
| | Gets a string representation of the immediate frames on the call stack. More...
|
| |
| xtd::ustring | to_string () const noexcept override |
| | Returns a string that represents the current exception. More...
|
| |
| const char * | what () const noexcept override |
| | Gets message associate to the exception. More...
|
| |
| | object ()=default |
| | Create a new instance of the ultimate base class object. More...
|
| |
| bool | equals (const object &obj) const noexcept |
| | Determines whether the specified object is equal to the current object. More...
|
| |
| virtual size_t | get_hash_code () const noexcept |
| | Serves as a hash function for a particular type. More...
|
| |
| virtual type_object | get_type () const noexcept |
| | Gets the type of the current instance. More...
|
| |
| template<typename object_t > |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| | Creates a shallow copy of the current object. More...
|
| |
| static bool | enable_stack_trace () noexcept |
| | Gets or sets if the generation of the stack trace is enabled. More...
|
| |
|
static void | enable_stack_trace (bool enable) noexcept |
| |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| | Determines whether the specified object instances are considered equal. More...
|
| |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| | Determines whether the specified object instances are the same instance. More...
|
| |