xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
helpers
throw_helper.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../internal/__xtd_source_location.hpp
"
6
#include "
../type.hpp
"
7
#include "
exception_case.hpp
"
8
10
namespace
xtd
{
12
namespace
net
{
13
namespace
sockets
{
14
enum class
socket_error
;
15
}
16
}
18
20
namespace
helpers
{
35
class
throw_helper
{
36
public
:
39
using
source_location
= __xtd_source_location__;
40
42
throw_helper
() =
delete
;
44
47
[[noreturn]]
static
auto
throws
(
xtd::helpers::exception_case
exception_case
,
const
source_location
& location = source_location::current()) -> void;
51
[[noreturn]]
static
auto
throws
(
xtd::helpers::exception_case
exception_case
,
const
char
* message,
const
source_location
& location = source_location::current()) -> void;
56
[[noreturn]]
static
auto
throws
(
xtd::helpers::exception_case
exception_case
,
const
xtd::type
&
type
,
const
source_location
& location = source_location::current()) -> void;
61
[[noreturn]]
static
auto
throws
(
xtd::helpers::exception_case
exception_case
,
const
xtd::net::sockets::socket_error
& error,
const
source_location
& location = source_location::current()) -> void;
62
};
63
}
64
}
__xtd_source_location.hpp
xtd::helpers::throw_helper
The xtd::helpers::throw_helper class is used to throw an exception in the xtd framework.
Definition
throw_helper.hpp:35
xtd::helpers::throw_helper::source_location
__xtd_source_location__ source_location
Represents the internal source location type.
Definition
throw_helper.hpp:39
exception_case.hpp
Contains xtd::helpers::exception_case enum class.
xtd::helpers::exception_case
exception_case
Represents the exception case used by the xtd::helpers::exception helper class.
Definition
exception_case.hpp:25
xtd::type
std::type_info type
Stores information about a type.
Definition
type.hpp:23
xtd::net::sockets::socket_error
socket_error
Defines error codes for the xtd::net::sockets::socket class.
Definition
socket_error.hpp:30
xtd::helpers
The xtd::helpers namespace contains helpers for xtd objects, sush as exception static class.
Definition
exception_case.hpp:9
xtd::net::sockets
The xtd::net::sockets namespace provides a managed implementation of the Berkeley Sockets interface f...
Definition
address_family.hpp:16
xtd::net
The xtd::net namespace provides a simple programming interface for many of the protocols used on netw...
Definition
cookie_exception.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
type.hpp
Contains xtd::type type.
Generated on
for xtd by
Gammasoft
. All rights reserved.