OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler 1.12.0
API documentation
Loading...
Searching...
No Matches
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
23
24#include <exception>
25
26namespace OnixS {
27namespace CboeCFE {
28namespace Trading {
29namespace BOE {
30
33class ONIXS_CBOE_CFE_BOE_THROWABLE Exception: public std::exception
34{
35public:
38 Exception (const char* method_name, const char* message);
39
43
46 ~Exception() ONIXS_BATS_BOE_NOTHROW;
47
50 Exception& operator = (const Exception&);
51
54 const char* what() const ONIXS_BATS_BOE_NOTHROW ONIXS_BATS_BOE_OVERRIDE;
55
58 void touch (const char* method_name);
59
60private:
61 struct Implementation;
62
63 Implementation* impl_;
64};
65
69{
70public:
73 ArgumentException (const char* source, const char* message);
74
77 ArgumentException (const char* source, const char* argument_name, const char* value, const char* comment = "");
78
81 ArgumentException (const char* source, const char* argument_name, int value, const char* comment = "");
82
85 ArgumentException (const char* source, const char* argument_name, unsigned int value, const char* comment = "");
86
89 ArgumentException (const char* source, const char* argument_name, double value, const char* comment = "");
90};
91
95{
96public:
99 NullArgumentException (const char* source, const char* argument_name);
100};
101
105{
106public:
109 ArgumentRangeException (const char* source, const char* message);
110
113 ArgumentRangeException (const char* source, const char* argument_name, int value, int min_value, int max_value);
114
117 ArgumentRangeException (const char* source, const char* argument_name, unsigned int value, unsigned int min_value, unsigned int max_value);
118
121 ArgumentRangeException (const char* source, const char* argument_name, int value, unsigned int max_value);
122
125 ArgumentRangeException (const char* source, const char* argument_name, unsigned int value, unsigned int max_value);
126
129 ArgumentRangeException (const char* source, const char* argument_name, double value, double min_value, double max_value);
130};
131
135{
136public:
139 OperationException (const char* source, const char* message);
140};
141
142}
143}
144}
145}
#define ONIXS_CBOE_CFE_BOE_THROWABLE
Definition ABI.h:34
ArgumentException(const char *source, const char *argument_name, unsigned int value, const char *comment="")
ArgumentException(const char *source, const char *argument_name, const char *value, const char *comment="")
ArgumentException(const char *source, const char *message)
ArgumentException(const char *source, const char *argument_name, int value, const char *comment="")
ArgumentException(const char *source, const char *argument_name, double value, const char *comment="")
ArgumentRangeException(const char *source, const char *argument_name, int value, unsigned int max_value)
ArgumentRangeException(const char *source, const char *argument_name, int value, int min_value, int max_value)
ArgumentRangeException(const char *source, const char *message)
ArgumentRangeException(const char *source, const char *argument_name, unsigned int value, unsigned int max_value)
ArgumentRangeException(const char *source, const char *argument_name, double value, double min_value, double max_value)
ArgumentRangeException(const char *source, const char *argument_name, unsigned int value, unsigned int min_value, unsigned int max_value)
void touch(const char *method_name)
~Exception() ONIXS_BATS_BOE_NOTHROW
const char * what() const ONIXS_BATS_BOE_NOTHROW ONIXS_BATS_BOE_OVERRIDE
Exception(const char *method_name, const char *message)
NullArgumentException(const char *source, const char *argument_name)
OperationException(const char *source, const char *message)