diff --git a/src/xtd.core/include/xtd/uri_format_exception.h b/src/xtd.core/include/xtd/uri_format_exception.h index 3400a0ebddc..1be9e7fd18e 100644 --- a/src/xtd.core/include/xtd/uri_format_exception.h +++ b/src/xtd.core/include/xtd/uri_format_exception.h @@ -31,68 +31,6 @@ namespace xtd { /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). template uri_format_exception(const std::optional& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()) : xtd::format_exception(message, inner_exception, stack_frame) {error_code(h_result::make_error_code(h_result::COR_E_FORMAT));} - - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param error Error code associate to the exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::error_code - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::error_code - Will be removed in version 0.4.0.")]] - uri_format_exception(const xtd::string& message, const std::error_code& error, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param help_link Help link string associate to the exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::help_link - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::help_link - Will be removed in version 0.4.0.")]] - uri_format_exception(const xtd::string& message, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param error Error code associate to the exception. - /// @param help_link Help link string associate to the exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) and manually set the properties xtd::exception::error_code and xtd::exception::help_link - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) and manually set the properties xtd::exception::error_code and xtd::exception::help_link - Will be removed in version 0.4.0.")]] - uri_format_exception(const xtd::string& message, const std::error_code& error, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param inner_exception The exception that is the cause of the current exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @remarks Message is set with the default message associate to the exception. - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) - Will be removed in version 0.4.0.")]] - uri_format_exception(const std::exception& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param inner_exception The exception that is the cause of the current exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) - Will be removed in version 0.4.0.")]] - uri_format_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param inner_exception The exception that is the cause of the current exception. - /// @param error Error code associate to the exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::error_code - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::error_code - Will be removed in version 0.4.0.")]] - uri_format_exception(const xtd::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param inner_exception The exception that is the cause of the current exception. - /// @param help_link Help link string associate to the exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::help_link - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) and manually set the property xtd::exception::help_link - Will be removed in version 0.4.0.")]] - uri_format_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()); - /// @brief Create a new instance of class uri_format_exception - /// @param message Message string associate to the exception. - /// @param inner_exception The exception that is the cause of the current exception. - /// @param error Error code associate to the exception. - /// @param help_link Help link string associate to the exception. - /// @param stack_frame (optional) Contains current stack frame about member name, file path and line number in the file where the exception is occurred. Typically xtd::diagnostics::stack_frame::current(). - /// @deprecated Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) and manually set the properties xtd::exception::error_code and xtd::exception::help_link - Will be removed in version 0.4.0. - [[deprecated("Use xtd::uri_format_exception (const xtd::string& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) and manually set the properties xtd::exception::error_code and xtd::exception::help_link - Will be removed in version 0.4.0.")]] - uri_format_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& stack_frame = xtd::diagnostics::stack_frame::current()); /// @} /// @cond diff --git a/src/xtd.core/src/xtd/uri_format_exception.cpp b/src/xtd.core/src/xtd/uri_format_exception.cpp index 2760ad7728a..1430c62d5e6 100644 --- a/src/xtd.core/src/xtd/uri_format_exception.cpp +++ b/src/xtd.core/src/xtd/uri_format_exception.cpp @@ -11,39 +11,3 @@ uri_format_exception::uri_format_exception(const stack_frame& stack_frame) : for uri_format_exception::uri_format_exception(const std::optional& message, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { error_code(h_result::make_error_code(h_result::COR_E_FORMAT)); } - -uri_format_exception::uri_format_exception(const xtd::string& message, const std::error_code& error, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { - error_code(error); -} - -uri_format_exception::uri_format_exception(const xtd::string& message, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { - error_code(h_result::make_error_code(h_result::COR_E_FORMAT)); - this->help_link(help_link); -} - -uri_format_exception::uri_format_exception(const xtd::string& message, const std::error_code& error, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { - error_code(error); - this->help_link(help_link); -} - -uri_format_exception::uri_format_exception(const std::exception& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(stack_frame) { - error_code(h_result::make_error_code(h_result::COR_E_FORMAT)); -} - -uri_format_exception::uri_format_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { - error_code(h_result::make_error_code(h_result::COR_E_FORMAT)); -} - -uri_format_exception::uri_format_exception(const xtd::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { - error_code(error); -} - -uri_format_exception::uri_format_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame) : format_exception(message, stack_frame) { - error_code(h_result::make_error_code(h_result::COR_E_FORMAT)); - this->help_link(help_link); -} - -uri_format_exception::uri_format_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& stack_frame) : format_exception(message, stack_frame) { - error_code(error); - this->help_link(help_link); -}