The xtd::helpers::throw_helper class is used to throw an exception in the xtd framework.
Public Types | |
using | source_location = __xtd_source_location__ |
Represents the internal source location type. | |
Static Public Member Functions | |
static void | throws (xtd::helpers::exception_case exception_case, const source_location &location=source_location::current()) |
Throws an exption with specified exception case. | |
static void | throws (xtd::helpers::exception_case exception_case, const char *message, const source_location &location=source_location::current()) |
Throws an exption with specified exception case, and message. | |
static void | throws (xtd::helpers::exception_case exception_case, const xtd::type &type, const source_location &location=source_location::current()) |
Throws an exption with specified exception case, and message. | |
static void | throws (xtd::helpers::exception_case exception_case, const xtd::net::sockets::socket_error &error, const source_location &location=source_location::current()) |
Throws an exption with specified exception case, and message. | |
using xtd::helpers::throw_helper::source_location = __xtd_source_location__ |
Represents the internal source location type.
|
static |
Throws an exption with specified exception case.
exception_case | One of xtd::helpers::exception_case values. |
|
static |
Throws an exption with specified exception case, and message.
exception_case | One of xtd::helpers::exception_case values. |
message | The message associate to the exception. |
|
static |
Throws an exption with specified exception case, and message.
exception_case | The xtd::helpers::exception_case::format_not_iformatable value. |
type | The type associate to the exception. |
|
static |
Throws an exption with specified exception case, and message.
exception_case | The xtd::helpers::exception_case::format_not_iformatable value. |
type | The type associate to the exception. |