Skip to content

Commit

Permalink
Update exception.h
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 10, 2024
1 parent 0cf8029 commit 71febd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xtd.core/include/xtd/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ namespace xtd {
/// @brief Create a new instance of class 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 #current_stack_frame_.
/// @remarks Message is set with the default message associate to the exception.
explicit exception(const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::empty());
explicit exception(const xtd::diagnostics::stack_frame& stack_frame = null);
/// @brief Create a new instance of class exception
/// @param message Message 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 #current_stack_frame_.
explicit exception(const std::optional<xtd::string>& message, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::empty());
explicit exception(const std::optional<xtd::string>& message, const xtd::diagnostics::stack_frame& stack_frame = null);
/// @brief Create a new instance of class 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 #current_stack_frame_.
template<typename exception_t>
exception(const std::optional<xtd::string>& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::empty()) : exception(message, inner_exception.template memberwise_clone<exception_t>(), stack_frame, true) {}
exception(const std::optional<xtd::string>& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = null) : exception(message, inner_exception.template memberwise_clone<exception_t>(), stack_frame, true) {}
/// @}

/// @cond
Expand Down

0 comments on commit 71febd6

Please sign in to comment.