OnixS C++ SGX Titan OUCH Trading Handler
1.2.0
API documentation
Home
Contents
Namespaces
Classes
Files
File List
File Members
include
OnixS
SgxTitan
Trading
OUCH
Exception.h
Go to the documentation of this file.
1
/*
2
* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3
*
4
* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5
* and international copyright treaties.
6
*
7
* Access to and use of the software is governed by the terms of the applicable OnixS Software
8
* Services Agreement(the Agreement) and Customer end user license agreements granting
9
* a non-assignable, non-transferable and non-exclusive license to use the software
10
* for it's own data processing purposes under the terms defined in the Agreement.
11
*
12
* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13
* of this source code or associated reference material to any other location for further reproduction
14
* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15
*
16
* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17
* the terms of the Agreement is a violation of copyright law.
18
*/
19
20
#pragma once
21
22
#include <exception>
23
24
#include <
OnixS/SgxTitan/Trading/OUCH/ABI.h
>
25
#include <
OnixS/SgxTitan/Trading/OUCH/Bootstrap.h
>
26
#include <OnixS/SgxTitan/Trading/OUCH/Compiler.h>
27
28
ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
29
30
/// Basic exception class for this namespace
31
class
ONIXS_SGXTITAN_OUCH_THROWABLE
Exception
:
public
std::exception
32
{
33
public
:
34
/// Constructor
35
Exception
(
const
char
* method_name,
const
char
* message);
36
37
/// Copy constructor
38
Exception
(
const
Exception
&);
39
40
/// Destructor
41
~
Exception
() ONIXS_SGX_OUCH_NOTHROW ONIXS_SGX_OUCH_OVERRIDE ;
42
43
/// Assignment
44
Exception
& operator =(
const
Exception
&);
45
46
/// Returns information about error
47
const
char
* what()
const
ONIXS_SGX_OUCH_NOTHROW ONIXS_SGX_OUCH_OVERRIDE;
48
49
/// Add information about context of exception
50
void
touch(
const
char
* method_name);
51
52
private
:
53
struct
Implementation
;
54
55
Implementation
* impl_;
56
};
57
58
/// Operation exception
59
class
ONIXS_SGXTITAN_OUCH_THROWABLE
OperationException
:
public
Exception
60
{
61
public
:
62
/// Constructor
63
OperationException
(
const
char
* source,
const
char
* message);
64
};
65
66
ONIXS_SGXTITAN_OUCH_NAMESPACE_END
ONIXS_SGXTITAN_OUCH_THROWABLE
#define ONIXS_SGXTITAN_OUCH_THROWABLE
Definition:
ABI.h:33
ABI.h
Bootstrap.h
OnixS::SgxTitan::Trading::Ouch::OperationException
Operation exception.
Definition:
Exception.h:59
ONIXS_SGXTITAN_OUCH_NAMESPACE_END
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_END
Definition:
Bootstrap.h:31
ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
#define ONIXS_SGXTITAN_OUCH_NAMESPACE_BEGIN
Definition:
Bootstrap.h:27
OnixS::SgxTitan::Trading::Ouch::Exception
Basic exception class for this namespace.
Definition:
Exception.h:31
Implementation
Definition:
AuditTrailDumper.h:24