xtd 0.2.0
Loading...
Searching...
No Matches
key_not_found_exception.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../system_exception.hpp"
6
8namespace xtd {
10 namespace collections {
12 namespace generic {
32 public:
34
48 template<typename exception_t>
51
54 key_not_found_exception& operator =(const key_not_found_exception&) = default;
56 };
57 }
58 }
59}
The exception that is thrown when the key specified for accessing an element in a collection does not...
Definition key_not_found_exception.hpp:31
key_not_found_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 key_not_found_exception.
key_not_found_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 key_not_found_exception.
Definition key_not_found_exception.hpp:49
key_not_found_exception(const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Create a new instance of class key_not_found_exception.
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.hpp: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 std::error_code & error_code() const noexcept
Gets error associate to the exception.
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.
static constexpr int32 COR_E_KEYNOTFOUND
The given key was not present in the dictionary.
Definition h_result.hpp:184
static std::error_code make_error_code(int h_result) noexcept
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
std::optional< type_t > optional
Represents the null_opt alias on std::nullopt_t.
Definition optional.hpp:175
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10