00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#if !defined(Magick_Exception_header)
00013 #define Magick_Exception_header
00014
00015
#include "Magick++/Include.h"
00016
#include <string>
00017
#include <exception>
00018
00019
namespace Magick
00020 {
00021
class MagickDLLDecl Exception :
public std::
exception
00022 {
00023
public:
00024 Exception(
const std::string& what_ );
00025 Exception(
const Exception& original_ );
00026 Exception& operator= (
const Exception& original_ );
00027
virtual const char* what ()
const throw();
00028
virtual ~Exception ( )
throw ();
00029
00030
private:
00031 std::string _what;
00032 };
00033
00034
00035
00036
00037
00038
class MagickDLLDecl Warning :
public Exception
00039 {
00040
public:
00041
explicit Warning (
const std::string& what_ );
00042 };
00043
00044
class MagickDLLDecl WarningUndefined :
public Warning
00045 {
00046
public:
00047
explicit WarningUndefined (
const std::string& what_ );
00048 };
00049
00050
class MagickDLLDecl WarningBlob:
public Warning
00051 {
00052
public:
00053
explicit WarningBlob (
const std::string& what_ );
00054 };
00055
00056
class MagickDLLDecl WarningCache:
public Warning
00057 {
00058
public:
00059
explicit WarningCache (
const std::string& what_ );
00060 };
00061
00062
class MagickDLLDecl WarningCoder:
public Warning
00063 {
00064
public:
00065
explicit WarningCoder (
const std::string& what_ );
00066 };
00067
00068
class MagickDLLDecl WarningConfigure:
public Warning
00069 {
00070
public:
00071
explicit WarningConfigure (
const std::string& what_ );
00072 };
00073
00074
class MagickDLLDecl WarningCorruptImage:
public Warning
00075 {
00076
public:
00077
explicit WarningCorruptImage (
const std::string& what_ );
00078 };
00079
00080
class MagickDLLDecl WarningDelegate :
public Warning
00081 {
00082
public:
00083
explicit WarningDelegate (
const std::string& what_ );
00084 };
00085
00086
class MagickDLLDecl WarningDraw :
public Warning
00087 {
00088
public:
00089
explicit WarningDraw (
const std::string& what_ );
00090 };
00091
00092
class MagickDLLDecl WarningFileOpen:
public Warning
00093 {
00094
public:
00095
explicit WarningFileOpen (
const std::string& what_ );
00096 };
00097
00098
class MagickDLLDecl WarningImage:
public Warning
00099 {
00100
public:
00101
explicit WarningImage (
const std::string& what_ );
00102 };
00103
00104
class MagickDLLDecl WarningMissingDelegate :
public Warning
00105 {
00106
public:
00107
explicit WarningMissingDelegate (
const std::string& what_ );
00108 };
00109
00110
class MagickDLLDecl WarningModule :
public Warning
00111 {
00112
public:
00113
explicit WarningModule (
const std::string& what_ );
00114 };
00115
00116
class MagickDLLDecl WarningMonitor :
public Warning
00117 {
00118
public:
00119
explicit WarningMonitor (
const std::string& what_ );
00120 };
00121
00122
class MagickDLLDecl WarningOption :
public Warning
00123 {
00124
public:
00125
explicit WarningOption (
const std::string& what_ );
00126 };
00127
00128
class MagickDLLDecl WarningRegistry :
public Warning
00129 {
00130
public:
00131
explicit WarningRegistry (
const std::string& what_ );
00132 };
00133
00134
class MagickDLLDecl WarningResourceLimit :
public Warning
00135 {
00136
public:
00137
explicit WarningResourceLimit (
const std::string& what_ );
00138 };
00139
00140
class MagickDLLDecl WarningStream :
public Warning
00141 {
00142
public:
00143
explicit WarningStream (
const std::string& what_ );
00144 };
00145
00146
class MagickDLLDecl WarningType :
public Warning
00147 {
00148
public:
00149
explicit WarningType (
const std::string& what_ );
00150 };
00151
00152
class MagickDLLDecl WarningXServer :
public Warning
00153 {
00154
public:
00155
explicit WarningXServer (
const std::string& what_ );
00156 };
00157
00158
00159
00160
00161
00162
class MagickDLLDecl Error :
public Exception
00163 {
00164
public:
00165
explicit Error (
const std::string& what_ );
00166 };
00167
00168
class MagickDLLDecl ErrorUndefined :
public Error
00169 {
00170
public:
00171
explicit ErrorUndefined (
const std::string& what_ );
00172 };
00173
00174
class MagickDLLDecl ErrorBlob:
public Error
00175 {
00176
public:
00177
explicit ErrorBlob (
const std::string& what_ );
00178 };
00179
00180
class MagickDLLDecl ErrorCache:
public Error
00181 {
00182
public:
00183
explicit ErrorCache (
const std::string& what_ );
00184 };
00185
00186
class MagickDLLDecl ErrorCoder:
public Error
00187 {
00188
public:
00189
explicit ErrorCoder (
const std::string& what_ );
00190 };
00191
00192
class MagickDLLDecl ErrorConfigure:
public Error
00193 {
00194
public:
00195
explicit ErrorConfigure (
const std::string& what_ );
00196 };
00197
00198
class MagickDLLDecl ErrorCorruptImage:
public Error
00199 {
00200
public:
00201
explicit ErrorCorruptImage (
const std::string& what_ );
00202 };
00203
00204
class MagickDLLDecl ErrorDelegate :
public Error
00205 {
00206
public:
00207
explicit ErrorDelegate (
const std::string& what_ );
00208 };
00209
00210
class MagickDLLDecl ErrorDraw :
public Error
00211 {
00212
public:
00213
explicit ErrorDraw (
const std::string& what_ );
00214 };
00215
00216
class MagickDLLDecl ErrorFileOpen:
public Error
00217 {
00218
public:
00219
explicit ErrorFileOpen (
const std::string& what_ );
00220 };
00221
00222
class MagickDLLDecl ErrorImage:
public Error
00223 {
00224
public:
00225
explicit ErrorImage (
const std::string& what_ );
00226 };
00227
00228
class MagickDLLDecl ErrorMissingDelegate :
public Error
00229 {
00230
public:
00231
explicit ErrorMissingDelegate (
const std::string& what_ );
00232 };
00233
00234
class MagickDLLDecl ErrorModule :
public Error
00235 {
00236
public:
00237
explicit ErrorModule (
const std::string& what_ );
00238 };
00239
00240
class MagickDLLDecl ErrorMonitor :
public Error
00241 {
00242
public:
00243
explicit ErrorMonitor (
const std::string& what_ );
00244 };
00245
00246
class MagickDLLDecl ErrorOption :
public Error
00247 {
00248
public:
00249
explicit ErrorOption (
const std::string& what_ );
00250 };
00251
00252
class MagickDLLDecl ErrorRegistry :
public Error
00253 {
00254
public:
00255
explicit ErrorRegistry (
const std::string& what_ );
00256 };
00257
00258
class MagickDLLDecl ErrorResourceLimit :
public Error
00259 {
00260
public:
00261
explicit ErrorResourceLimit (
const std::string& what_ );
00262 };
00263
00264
class MagickDLLDecl ErrorStream :
public Error
00265 {
00266
public:
00267
explicit ErrorStream (
const std::string& what_ );
00268 };
00269
00270
class MagickDLLDecl ErrorType :
public Error
00271 {
00272
public:
00273
explicit ErrorType (
const std::string& what_ );
00274 };
00275
00276
class MagickDLLDecl ErrorXServer :
public Error
00277 {
00278
public:
00279
explicit ErrorXServer (
const std::string& what_ );
00280 };
00281
00282
00283
00284
00285
00286
00287
MagickDLLDeclExtern void throwExceptionExplicit(
const MagickLib::ExceptionType severity_,
00288
const char* reason_,
00289
const char* description_ = 0 );
00290
00291
00292
MagickDLLDeclExtern void throwException( MagickLib::ExceptionInfo &exception_ );
00293
00294 }
00295
00296
#endif // Magick_Exception_header