35 template<
typename exception_t>
50 [[deprecated(
"Replaced by xtd::exception::get_last_stack_frame().get_file_name - Will be removed in version 1.2.0.")]]
51 [[nodiscard]]
virtual auto file_path() const noexcept -> const
xtd::
string&;
56 [[deprecated(
"Replaced by xtd::exception::get_last_stack_frame().get_file_line_number - Will be removed in version 1.2.0.")]]
62 [[deprecated(
"Replaced by xtd::exception::get_last_stack_frame().get_method - Will be removed in version 1.2.0.")]]
63 [[nodiscard]] virtual auto
member_name() const noexcept -> const
xtd::
string&;
68 [[deprecated(
"Replaced by xtd::exception::get_type().full_name() - Will be removed in version 1.2.0.")]]
69 [[nodiscard]] virtual auto
name() const noexcept -> const
xtd::
string&;
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.hpp:46
static auto current(const xtd::diagnostics::source_location &value=xtd::diagnostics::source_location::current()) noexcept -> xtd::diagnostics::stack_frame
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
exception(const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class exception.
virtual auto inner_exception() const noexcept -> exception_ref
Gets the exception instance that caused the current exception.
virtual auto help_link() const noexcept -> const xtd::string &
Gets a link to the help file associated with this exception.
virtual auto message() const noexcept -> const xtd::string &
Gets message associate to the exception.
virtual auto error_code() const noexcept -> const std::error_code &
Gets error associate to the exception.
static constexpr auto COR_E_SYSTEM
System error.
Definition h_result.hpp:239
static auto make_error_code(xtd::int32 h_result) noexcept -> std::error_code
Creates error code value for the specified HRESULT.
The exception that is thrown when a method call is invalid for the object's current state.
Definition system_exception.hpp:18
system_exception(const xtd::optional< xtd::string > &message, const exception_t &inner_exception, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::system_exception.
Definition system_exception.hpp:36
virtual auto line_number() const noexcept -> xtd::usize
Gets Line number where the exception occurred.
virtual auto name() const noexcept -> const xtd::string &
Gets full class name the exception.
virtual auto member_name() const noexcept -> const xtd::string &
Gets file member where exception occurred.
system_exception(const xtd::optional< xtd::string > &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::system_exception.
virtual auto file_path() const noexcept -> const xtd::string &
Gets file path where exception occurred.
system_exception(const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class xtd::system_exception.
Contains xtd::exception exception.
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.hpp:26
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8