Skip to content

Commit

Permalink
Rename params
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 14, 2024
1 parent 07f3a37 commit ebbc263
Show file tree
Hide file tree
Showing 53 changed files with 1,050 additions and 1,050 deletions.
46 changes: 23 additions & 23 deletions src/xtd.core/include/xtd/argument_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,57 +27,57 @@ namespace xtd {

/// @{
/// @brief Create a new instance of class argument_exception
/// @param information (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_.
/// @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 argument_exception(const xtd::diagnostics::stack_frame& info = null) : system_exception(default_message(), info) {}
explicit argument_exception(const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(default_message(), stack_frame) {}
/// @brief Create a new instance of class argument_exception
/// @param message Message string associate to the exception.
/// @param information (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 argument_exception(const xtd::string& message, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, info) {}
/// @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 argument_exception(const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, stack_frame) {}
/// @brief Create a new instance of class argument_exception
/// @param message Message string associate to the exception.
/// @param error Error code associate to the exception.
/// @param information (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 argument_exception(const xtd::string& message, const std::error_code& error, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, error, info) {}
/// @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 argument_exception(const xtd::string& message, const std::error_code& error, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, error, stack_frame) {}
/// @brief Create a new instance of class argument_exception
/// @param message Message string associate to the exception.
/// @param help_link Help link string associate to the exception.
/// @param information (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 argument_exception(const xtd::string& message, const xtd::string& help_link, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, help_link, info) {}
/// @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 argument_exception(const xtd::string& message, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, help_link, stack_frame) {}
/// @brief Create a new instance of class argument_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.
explicit argument_exception(const xtd::string& message, const std::error_code& error, const xtd::string& help_link, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, error, help_link, info) {}
explicit argument_exception(const xtd::string& message, const std::error_code& error, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, error, help_link, stack_frame) {}
/// @brief Create a new instance of class argument_exception
/// @param inner_exception The exception that is the cause of the current exception.
/// @param information (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_.
/// @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 argument_exception(const std::exception& inner_exception, const xtd::diagnostics::stack_frame& info = null) : system_exception(default_message(), inner_exception, info) {}
explicit argument_exception(const std::exception& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(default_message(), inner_exception, stack_frame) {}
/// @brief Create a new instance of class argument_exception
/// @param message Message string associate to the exception.
/// @param inner_exception The exception that is the cause of the current exception.
/// @param information (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 argument_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, inner_exception, info) {}
/// @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 argument_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, inner_exception, stack_frame) {}
/// @brief Create a new instance of class argument_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 information (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 argument_exception(const xtd::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, inner_exception, error, info) {}
/// @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 argument_exception(const xtd::string& message, const std::exception& inner_exception, const std::error_code& error, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, inner_exception, error, stack_frame) {}
/// @brief Create a new instance of class argument_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 information (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 argument_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::string& help_link, const xtd::diagnostics::stack_frame& info = null) : system_exception(message, inner_exception, help_link, info) {}
/// @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 argument_exception(const xtd::string& message, const std::exception& inner_exception, const xtd::string& help_link, const xtd::diagnostics::stack_frame& stack_frame = null) : system_exception(message, inner_exception, help_link, stack_frame) {}
/// @brief Create a new instance of class argument_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 information (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 argument_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 = null) : system_exception(message, inner_exception, error, help_link, info) {}
/// @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 argument_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 = null) : system_exception(message, inner_exception, error, help_link, stack_frame) {}
/// @}

/// @cond
Expand All @@ -91,15 +91,15 @@ namespace xtd {
/// @brief Throws an exception if `argument` is empty.
/// @param argument The string argument to validate as non-empty.
/// @param param_name (optional) The name of the parameter with which argument corresponds.
/// @param information (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_.
/// @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_.
/// @exception xtd::argument_exception `argument` is empty.
static void throw_if_empty(const xtd::string& argument, const xtd::string& param_name = xtd::string::empty_string, const xtd::diagnostics::stack_frame& info = null) {if (xtd::string::is_empty(argument)) throw argument_exception {string::format("The value cannot be an empty string. (Parameter '{}')", param_name, info)};}
static void throw_if_empty(const xtd::string& argument, const xtd::string& param_name = xtd::string::empty_string, const xtd::diagnostics::stack_frame& stack_frame = null) {if (xtd::string::is_empty(argument)) throw argument_exception {string::format("The value cannot be an empty string. (Parameter '{}')", param_name, stack_frame)};}
/// @brief Throws an exception if argument is empty, or consists only of white-space characters.
/// @param argument The string argument to validate.
/// @param param_name (optional) The name of the parameter with which argument corresponds.
/// @param information (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_.
/// @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_.
/// @exception xtd::argument_exception `argument` is empty or consists only of white-space characters.
static void throw_if_empty_or_white_space(const xtd::string& argument, const xtd::string& param_name = xtd::string::empty_string, const xtd::diagnostics::stack_frame& info = null) {if (xtd::string::is_empty(argument.replace(" ", ""))) throw argument_exception {string::format("The value cannot be an empty string or composed entirely of whitespace. (Parameter '{}')", param_name, info)};}
static void throw_if_empty_or_white_space(const xtd::string& argument, const xtd::string& param_name = xtd::string::empty_string, const xtd::diagnostics::stack_frame& stack_frame = null) {if (xtd::string::is_empty(argument.replace(" ", ""))) throw argument_exception {string::format("The value cannot be an empty string or composed entirely of whitespace. (Parameter '{}')", param_name, stack_frame)};}
/// @}

private:
Expand Down
Loading

0 comments on commit ebbc263

Please sign in to comment.