CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Libs
PluginFramework
service
application
ctkApplicationException.h
Go to the documentation of this file.
1
/*=============================================================================
2
3
Library: CTK
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics
7
8
Licensed under the Apache License, Version 2.0 (the "License");
9
you may not use this file except in compliance with the License.
10
You may obtain a copy of the License at
11
12
http://www.apache.org/licenses/LICENSE-2.0
13
14
Unless required by applicable law or agreed to in writing, software
15
distributed under the License is distributed on an "AS IS" BASIS,
16
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
See the License for the specific language governing permissions and
18
limitations under the License.
19
20
=============================================================================*/
21
22
#ifndef CTKAPPLICATIONEXCEPTION_H
23
#define CTKAPPLICATIONEXCEPTION_H
24
25
#include <ctkPluginFrameworkExport.h>
26
27
#include <
ctkException.h
>
28
57
class
CTK_PLUGINFW_EXPORT
ctkApplicationException
:
public
ctkException
58
{
59
60
private
:
61
62
int
errorCode;
63
64
public
:
65
69
static
const
int
APPLICATION_LOCKED
;
// = 0x01;
70
76
static
const
int
APPLICATION_NOT_LAUNCHABLE
;
// = 0x02;
77
82
static
const
int
APPLICATION_INTERNAL_ERROR
;
// = 0x03;
83
89
static
const
int
APPLICATION_SCHEDULING_FAILED
;
// = 0x04;
90
95
static
const
int
APPLICATION_DUPLICATE_SCHEDULE_ID
;
// = 0x05;
96
101
static
const
int
APPLICATION_EXITVALUE_NOT_AVAILABLE
;
// = 0x06;
102
107
static
const
int
APPLICATION_INVALID_STARTUP_ARGUMENT
;
// = 0x07;
108
113
ctkApplicationException
(
int
errorCode);
114
121
ctkApplicationException
(
int
errorCode,
const
ctkException
& cause);
122
128
ctkApplicationException
(
int
errorCode,
const
QString& message);
129
137
ctkApplicationException
(
int
errorCode,
const
QString& message,
const
ctkException
& cause);
138
139
~
ctkApplicationException
() throw();
140
141
const
char
* name() const throw();
142
143
ctkApplicationException
* clone() const;
144
145
void
rethrow() const;
146
152
int
GetErrorCode() const;
153
};
154
155
#endif // CTKAPPLICATIONEXCEPTION_H
ctkApplicationException::APPLICATION_INTERNAL_ERROR
static const int APPLICATION_INTERNAL_ERROR
Definition:
ctkApplicationException.h:82
ctkApplicationException::APPLICATION_INVALID_STARTUP_ARGUMENT
static const int APPLICATION_INVALID_STARTUP_ARGUMENT
Definition:
ctkApplicationException.h:107
ctkApplicationException::APPLICATION_NOT_LAUNCHABLE
static const int APPLICATION_NOT_LAUNCHABLE
Definition:
ctkApplicationException.h:76
ctkApplicationException::APPLICATION_DUPLICATE_SCHEDULE_ID
static const int APPLICATION_DUPLICATE_SCHEDULE_ID
Definition:
ctkApplicationException.h:95
ctkApplicationException::APPLICATION_SCHEDULING_FAILED
static const int APPLICATION_SCHEDULING_FAILED
Definition:
ctkApplicationException.h:89
ctkException
The base class for all exceptions defined in CTK.
Definition:
ctkException.h:45
ctkApplicationException
Definition:
ctkApplicationException.h:57
ctkException.h
ctkApplicationException::APPLICATION_LOCKED
static const int APPLICATION_LOCKED
Definition:
ctkApplicationException.h:69
ctkApplicationException::APPLICATION_EXITVALUE_NOT_AVAILABLE
static const int APPLICATION_EXITVALUE_NOT_AVAILABLE
Definition:
ctkApplicationException.h:101
Generated on Fri Jul 13 2018 00:29:39 for CTK by
1.8.14