xtd 0.2.0
Loading...
Searching...
No Matches
drive_not_found_exception.h
Go to the documentation of this file.
1
4#pragma once
5#include "io_exception.h"
6
8namespace xtd {
10 namespace io {
30 public:
32
46 explicit drive_not_found_exception(const xtd::string& message, const std::error_code& error, const xtd::diagnostics::stack_frame& info = xtd::diagnostics::stack_frame::empty()) : io_exception(message, error, info) {}
72 explicit drive_not_found_exception(const xtd::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::diagnostics::stack_frame& info = xtd::diagnostics::stack_frame::empty()) : io_exception(message, inner_exception, error, info) {}
85 explicit drive_not_found_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& info = xtd::diagnostics::stack_frame::empty()) : io_exception(message, inner_exception, error, help_link, info) {}
87
90 drive_not_found_exception& operator =(const drive_not_found_exception&) = default;
92
93 private:
94 const char* default_message() const noexcept {return "Attempted to access a drive that is not available."_t;}
95 };
96 }
97}
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:46
static stack_frame empty() noexcept
Return an empty stack frame.
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.
The exception that is thrown when trying to access a drive or share that is not available.
Definition drive_not_found_exception.h:29
drive_not_found_exception(const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:61
drive_not_found_exception(const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:37
drive_not_found_exception(const xtd::string &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 drive_not_found_exception.
Definition drive_not_found_exception.h:72
drive_not_found_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 &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:85
drive_not_found_exception(const xtd::string &message, const std::error_code &error, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:56
drive_not_found_exception(const xtd::string &message, const std::error_code &error, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:46
drive_not_found_exception(const xtd::string &message, const std::exception &inner_exception, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:78
drive_not_found_exception(const xtd::string &message, const std::exception &inner_exception, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:66
drive_not_found_exception(const xtd::string &message, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:41
drive_not_found_exception(const xtd::string &message, const xtd::string &help_link, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class drive_not_found_exception.
Definition drive_not_found_exception.h:51
The exception that is thrown when an I/O error occurs.
Definition io_exception.h:29
Contains xtd::io::io_exception exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10