xtd 0.2.0
Loading...
Searching...
No Matches
directory_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 directory_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 directory_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) {}
91
92 private:
93 const char* default_message() const noexcept {return "Attempted to access a path that is not on the disk."_t;}
94 };
95 }
96}
97
114#define directory_not_found_exception_(...) directory_not_found_exception(add_csf_(__VA_ARGS__))
Represents text as a sequence of character units.
Definition basic_string.h:79
static stack_frame empty() noexcept
Return an empty stack frame.
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:40
directory_not_found_exception(const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class directory_not_found_exception.
Definition directory_not_found_exception.h:37
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:51
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:46
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:66
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:56
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:72
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:78
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:61
directory_not_found_exception(const xtd::string &message, const xtd::diagnostics::stack_frame &info=xtd::diagnostics::stack_frame::empty())
Create a new instance of class directory_not_found_exception.
Definition directory_not_found_exception.h:41
directory_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 directory_not_found_exception.
Definition directory_not_found_exception.h:85
The exception that is thrown when part of a file or directory cannot be found.
Definition directory_not_found_exception.h:29
The exception that is thrown when an I/O error occurs.
Definition io_exception.h:29
virtual const xtd::string & help_link() const noexcept
Gets a link to the help file associated with this exception.
virtual exception_ref inner_exception() const noexcept
Gets the exception instance that caused the current exception.
virtual const xtd::string & message() const noexcept
Gets message associate to the exception.
Contains xtd::io::io_exception exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10