xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
not_supported_exception.h
1 #pragma once
2 #include "system_exception.h"
3 
5 namespace xtd {
13  public:
21  explicit not_supported_exception(const std::string& message, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, info) {}
26  explicit not_supported_exception(const std::string& message, const std::error_code& error, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, error, info) {}
31  explicit not_supported_exception(const std::string& message, const std::string& help_link, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, help_link, info) {}
36  explicit not_supported_exception(const std::string& message, const std::error_code& error, const std::string& help_link, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, error, help_link, info) {}
41  not_supported_exception(const std::exception& inner_exception, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(default_message(), inner_exception, info) {}
46  explicit not_supported_exception(const std::string& message, const std::exception& inner_exception, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, inner_exception, info) {}
52  explicit not_supported_exception(const std::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, inner_exception, error, info) {}
58  explicit not_supported_exception(const std::string& message, const std::exception& inner_exception, const std::string& help_link, const xtd::caller_info& info = xtd::caller_info::empty()) : system_exception(message, inner_exception, help_link, info) {}
65  explicit not_supported_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()) : system_exception(message, inner_exception, error, help_link, info) {}
66 
69  not_supported_exception& operator=(const not_supported_exception&) = default;
71 
72  private:
73  const char* default_message() const {return "Specified method is not supported."_t;}
74  };
75 }
Defines the base class for predefined exceptions in the xtd namespace.
Definition: system_exception.h:17
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:65
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
not_supported_exception(const std::string &message, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class not_supported_exception.
Definition: not_supported_exception.h:21
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:52
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:58
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:31
static xtd::caller_info empty() noexcept
Return an empty caller info.
Definition: caller_info.h:32
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:46
caller_info information class is used to store current file, current line and current function inform...
Definition: caller_info.h:14
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:26
not_supported_exception(const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class not_supported_exception.
Definition: not_supported_exception.h:17
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
Definition: not_supported_exception.h:12
not_supported_exception(const std::exception &inner_exception, const xtd::caller_info &info=xtd::caller_info::empty())
Create a new instance of class not_supported_exception.
Definition: not_supported_exception.h:41
not_supported_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 not_supported_exception.
Definition: not_supported_exception.h:36