diff --git a/src/xtd.core/include/xtd/exception.h b/src/xtd.core/include/xtd/exception.h index 3a9f11efb93..41854051856 100644 --- a/src/xtd.core/include/xtd/exception.h +++ b/src/xtd.core/include/xtd/exception.h @@ -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& message, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::empty()); + explicit exception(const std::optional& 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 - exception(const std::optional& 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(), stack_frame, true) {} + exception(const std::optional& message, const exception_t& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = null) : exception(message, inner_exception.template memberwise_clone(), stack_frame, true) {} /// @} /// @cond