OnixS C++ MTS Bond Vision SDP Handler 1.3.0
API documentation
Loading...
Searching...
No Matches
Exception.h
Go to the documentation of this file.
1#pragma once
2/*
3* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4*
5* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6* and international copyright treaties.
7*
8* Access to and use of the software is governed by the terms of the applicable OnixS Software
9* Services Agreement (the Agreement) and Customer end user license agreements granting
10* a non-assignable, non-transferable and non-exclusive license to use the software
11* for it's own data processing purposes under the terms defined in the Agreement.
12*
13* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14* of this source code or associated reference material to any other location for further reproduction
15* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
16*
17* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18* the terms of the Agreement is a violation of copyright law.
19*/
20
22
23#include <exception>
24
25namespace OnixS {
26namespace Mts {
27namespace BondVision {
28namespace SDP {
29
33{
34public:
37 Exception (const char* method_name, const char* message);
38
42
45 ~Exception () throw ();
46
49 Exception& operator = (const Exception&);
50
53 const char* what () const throw ();
54
57 void touch (const char* method_name);
58
59private:
60 struct Implementation;
61
62 Implementation* impl_;
63};
64
68{
69public:
72 ArgumentException (const char* source, const char* message);
73
76 ArgumentException (const char* source, const char* argument_name, const char* value, const char* comment = "");
77
80 ArgumentException (const char* source, const char* argument_name, int value, const char* comment = "");
81
84 ArgumentException (const char* source, const char* argument_name, unsigned int value, const char* comment = "");
85
88 ArgumentException (const char* source, const char* argument_name, double value, const char* comment = "");
89};
90
94{
95public:
98 NullArgumentException (const char* source, const char* argument_name);
99};
100
104{
105public:
108 ArgumentRangeException (const char* source, const char* message);
109
112 ArgumentRangeException (const char* source, const char* argument_name, int value, int min_value, int max_value);
113
116 ArgumentRangeException (const char* source, const char* argument_name, unsigned int value, unsigned int min_value, unsigned int max_value);
117
120 ArgumentRangeException (const char* source, const char* argument_name, int value, unsigned int max_value);
121
124 ArgumentRangeException (const char* source, const char* argument_name, unsigned int value, unsigned int max_value);
125
128 ArgumentRangeException (const char* source, const char* argument_name, double value, double min_value, double max_value);
129};
130
134{
135public:
138 OperationException (const char* source, const char* message);
139};
140
150
151}
152}
153}
154}
#define ONIXS_MTS_BONDVISION_SDP_THROWABLE
Definition ABI.h:32
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(const char *method_name, const char *message)
NullArgumentException(const char *source, const char *argument_name)
OperationException(const char *source, const char *message)