1 karl 1.19 //%2006////////////////////////////////////////////////////////////////////////
|
2 kumpf 1.1 //
|
3 karl 1.16 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.13 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.16 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.17 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.19 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 kumpf 1.1 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
20 //
21 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 kumpf 1.1 #include <cstdio>
35 #include "InternalException.h"
|
36 kumpf 1.2 #include <Pegasus/Common/CIMExceptionRep.h>
|
37 kumpf 1.18 #include <Pegasus/Common/ContentLanguageList.h>
|
38 kumpf 1.1 #include "Tracer.h"
39
40 PEGASUS_NAMESPACE_BEGIN
41
42 AssertionFailureException::AssertionFailureException(
43 const char* file,
44 size_t line,
|
45 kumpf 1.2 const String& message) : Exception(String::EMPTY)
|
46 kumpf 1.1 {
47 char lineStr[32];
|
48 kumpf 1.6 sprintf(lineStr, "%u", Uint32(line));
|
49 kumpf 1.1
|
50 kumpf 1.5 _rep->message = file;
51 _rep->message.append("(");
52 _rep->message.append(lineStr);
53 _rep->message.append("): ");
54 _rep->message.append(message);
|
55 kumpf 1.1
|
56 thilo.boehm 1.33 PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL1,
57 (const char*)_rep->message.getCString()));
|
58 kumpf 1.1 }
59
|
60 mike 1.20 AssertionFailureException::~AssertionFailureException()
61 {
62 }
63
|
64 kumpf 1.1 const char NullPointer::MSG[] = "null pointer";
|
65 humberto 1.11 const char NullPointer::KEY[] = "Common.InternalException.NULL_POINTER";
|
66 kumpf 1.1
|
67 humberto 1.9 const char UndeclaredQualifier::MSG[] = "undeclared qualifier: $0";
|
68 kumpf 1.22 const char UndeclaredQualifier::KEY[] =
69 "Common.InternalException.UNDECLARED_QUALIFIER";
|
70 kumpf 1.1
|
71 kumpf 1.22 const char BadQualifierScope::MSG[] =
72 "qualifier invalid in this scope: $0 scope=$1";
73 const char BadQualifierScope::KEY[] =
74 "Common.InternalException.BAD_QUALIFIER_SCOPE";
|
75 kumpf 1.1
|
76 humberto 1.12 const char BadQualifierOverride::MSG[] = "qualifier not overridable: $0";
|
77 kumpf 1.22 const char BadQualifierOverride::KEY[] =
78 "Common.InternalException.BAD_QUALIFIER_OVERRIDE";
|
79 kumpf 1.1
|
80 kumpf 1.22 const char BadQualifierType::MSG[] =
81 "CIMType of qualifier different than its declaration: $0";
82 const char BadQualifierType::KEY[] =
83 "Common.InternalException.BAD_QUALIFIER_TYPE";
84
85 const char InstantiatedAbstractClass::MSG[] =
86 "attempted to instantiate an abstract class $0";
87 const char InstantiatedAbstractClass::KEY[] =
88 "Common.InternalException.INSTANTIATED_ABSTRACT_CLASS";
|
89 kumpf 1.1
|
90 humberto 1.12 const char NoSuchProperty::MSG[] = "no such property: $0";
|
91 humberto 1.11 const char NoSuchProperty::KEY[] = "Common.InternalException.NO_SUCH_PROPERTY";
|
92 kumpf 1.1
|
93 humberto 1.12 const char NoSuchFile::MSG[] = "no such file: $0";
|
94 humberto 1.11 const char NoSuchFile::KEY[] = "Common.InternalException.NO_SUCH_FILE";
|
95 kumpf 1.1
|
96 humberto 1.12 const char FileNotReadable::MSG[] = "file not readable: $0";
|
97 kumpf 1.22 const char FileNotReadable::KEY[] =
98 "Common.InternalException.FILE_NOT_READABLE";
|
99 kumpf 1.1
|
100 humberto 1.12 const char CannotRemoveDirectory::MSG[] = "cannot remove directory: $0";
|
101 kumpf 1.22 const char CannotRemoveDirectory::KEY[] =
102 "Common.InternalException.CANNOT_REMOVE_DIRECTORY";
|
103 kumpf 1.1
|
104 humberto 1.12 const char CannotRemoveFile::MSG[] = "cannot remove file: $0";
|
105 kumpf 1.22 const char CannotRemoveFile::KEY[] =
106 "Common.InternalException.CANNOT_REMOVE_FILE";
|
107 kumpf 1.1
|
108 humberto 1.12 const char CannotRenameFile::MSG[] = "cannot rename file: $0";
|
109 kumpf 1.22 const char CannotRenameFile::KEY[] =
110 "Common.InternalException.CANNOT_RENAME_FILE";
|
111 kumpf 1.1
|
112 humberto 1.12 const char NoSuchDirectory::MSG[] = "no such directory: $0";
|
113 kumpf 1.22 const char NoSuchDirectory::KEY[] =
114 "Common.InternalException.NO_SUCH_DIRECTORY";
|
115 kumpf 1.1
|
116 humberto 1.12 const char CannotCreateDirectory::MSG[] = "cannot create directory: $0";
|
117 kumpf 1.22 const char CannotCreateDirectory::KEY[] =
118 "Common.InternalException.CANNOT_CREATE_DIRECTORY";
|
119 kumpf 1.1
|
120 humberto 1.12 const char CannotOpenFile::MSG[] = "cannot open file: $0";
|
121 humberto 1.11 const char CannotOpenFile::KEY[] = "Common.InternalException.CANNOT_OPEN_FILE";
|
122 kumpf 1.1
|
123 humberto 1.12 const char NotImplemented::MSG[] = "not implemented: $0";
|
124 kumpf 1.22 const char NotImplemented::KEY[] = "Common.InternalException.NOT_IMPLEMENTED";
|
125 kumpf 1.1
126 const char StackUnderflow::MSG[] = "stack underflow";
|
127 humberto 1.11 const char StackUnderflow::KEY[] = "Common.InternalException.STACK_UNDERFLOW";
|
128 kumpf 1.1
129 const char StackOverflow::MSG[] = "stack overflow";
|
130 kumpf 1.22 const char StackOverflow::KEY[] = "Common.InternalException.STACK_OVERFLOW";
|
131 kumpf 1.1
|
132 humberto 1.12 const char DynamicLoadFailed::MSG[] = "load of dynamic library failed: $0";
|
133 kumpf 1.22 const char DynamicLoadFailed::KEY[] =
134 "Common.InternalException.DYNAMIC_LOAD_FAILED";
|
135 kumpf 1.1
|
136 kumpf 1.22 const char DynamicLookupFailed::MSG[] =
137 "lookup of symbol in dynamic library failed: $0";
138 const char DynamicLookupFailed::KEY[] =
139 "Common.InternalException.DYNAMIC_LOOKUP_FAILED";
|
140 kumpf 1.1
|
141 humberto 1.12 const char CannotOpenDirectory::MSG[] = "cannot open directory: $0";
|
142 kumpf 1.22 const char CannotOpenDirectory::KEY[] =
143 "Common.InternalException.CANNOT_OPEN_DIRECTORY";
|
144 kumpf 1.1
|
145 humberto 1.12 const char ParseError::MSG[] = "parse error: $0";
|
146 humberto 1.11 const char ParseError::KEY[] = "Common.InternalException.PARSE_ERROR";
|
147 kumpf 1.1
|
148 humberto 1.12 const char MissingNullTerminator::MSG[] = "missing null terminator: $0";
|
149 kumpf 1.22 const char MissingNullTerminator::KEY[] =
150 "Common.InternalException.MISSING_NULL_TERMINATOR";
|
151 kumpf 1.1
|
152 humberto 1.12 const char MalformedLanguageHeader::MSG[] = "malformed language header: $0";
|
153 kumpf 1.22 const char MalformedLanguageHeader::KEY[] =
154 "Common.InternalException.MALFORMED_LANGUAGE_HEADER";
|
155 chuck 1.7
|
156 kumpf 1.22 const char InvalidAcceptLanguageHeader::MSG[] =
157 "invalid acceptlanguage header: $0";
158 const char InvalidAcceptLanguageHeader::KEY[] =
159 "Common.InternalException.INVALID_ACCEPTLANGUAGE_HEADER";
160
161 const char InvalidContentLanguageHeader::MSG[] =
162 "invalid contentlanguage header: $0";
163 const char InvalidContentLanguageHeader::KEY[] =
164 "Common.InternalException.INVALID_CONTENTLANGUAGE_HEADER";
|
165 chuck 1.7
|
166 kumpf 1.1 const char InvalidAuthHeader::MSG[] = "Invalid Authorization header";
|
167 kumpf 1.22 const char InvalidAuthHeader::KEY[] =
168 "Common.InternalException.INVALID_AUTH_HEADER";
|
169 kumpf 1.1
170 const char UnauthorizedAccess::MSG[] = "Unauthorized access";
|
171 kumpf 1.22 const char UnauthorizedAccess::KEY[] =
172 "Common.InternalException.UNAUTHORIZED_ACCESS";
|
173 kumpf 1.1
|
174 kumpf 1.14 const char InternalSystemError::MSG[] = "Unable to authenticate user";
175
|
176 kumpf 1.1 ////////////////////////////////////////////////////////////////////////////////
177 //
|
178 kumpf 1.2 // TraceableCIMException
|
179 kumpf 1.1 //
180 ////////////////////////////////////////////////////////////////////////////////
181
182 //
183 // Creates a description without source file name and line number.
184 //
185 static String _makeCIMExceptionDescription(
186 CIMStatusCode code,
187 const String& message)
188 {
189 String tmp;
190 tmp.append(cimStatusCodeToString(code));
191 if (message != String::EMPTY)
192 {
|
193 kumpf 1.26 tmp.append(": ");
|
194 kumpf 1.1 tmp.append(message);
195 }
196 return tmp;
197 }
198
|
199 chuck 1.7 //
200 // Creates a description without source file name and line number.
201 //
202 static String _makeCIMExceptionDescription(
203 CIMStatusCode code,
204 const String& message,
|
205 kumpf 1.18 ContentLanguageList& contentLanguages)
|
206 chuck 1.7 {
207 String tmp;
208 tmp = cimStatusCodeToString(code, contentLanguages);
209 if (message != String::EMPTY)
210 {
|
211 kumpf 1.26 tmp.append(": ");
|
212 chuck 1.7 tmp.append(message);
213 }
214 return tmp;
215 }
216
217 //
218 // Creates a description without source file name and line number.
219 //
220 static String _makeCIMExceptionDescription(
221 const String& cimMessage,
222 const String& extraMessage)
223 {
224 String tmp;
225 tmp = cimMessage;
226 if (extraMessage != String::EMPTY)
227 {
|
228 kumpf 1.26 tmp.append(": ");
|
229 chuck 1.7 tmp.append(extraMessage);
230 }
231 return tmp;
232 }
233
|
234 kumpf 1.1 //
235 // Creates a description with source file name and line number.
236 //
237 static String _makeCIMExceptionDescription(
238 CIMStatusCode code,
239 const String& message,
|
240 kumpf 1.15 const String& file,
|
241 kumpf 1.1 Uint32 line)
242 {
243 String tmp = file;
244 tmp.append("(");
245 char buffer[32];
|
246 kumpf 1.32 sprintf(buffer, "%u", line);
|
247 kumpf 1.1 tmp.append(buffer);
248 tmp.append("): ");
249 tmp.append(_makeCIMExceptionDescription(code, message));
250 return tmp;
251 }
252
|
253 humberto 1.10 TraceableCIMException::TraceableCIMException(
254 CIMStatusCode code,
|
255 kumpf 1.24 const MessageLoaderParms& parms,
|
256 kumpf 1.15 const String& file,
|
257 humberto 1.10 Uint32 line)
|
258 kumpf 1.22 : CIMException(code, parms)
|
259 humberto 1.10 {
260 CIMExceptionRep* rep;
261 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
262 rep->file = file;
263 rep->line = line;
264
|
265 kumpf 1.26 // Get the cim message from the code. Ignore the content languages from
266 // this operation, since the cimMessage string is only localized when the
267 // code is invalid.
268 cimStatusCodeToString_Thread(rep->cimMessage, code);
|
269 humberto 1.10 }
270
|
271 kumpf 1.2 TraceableCIMException::TraceableCIMException(
|
272 kumpf 1.1 CIMStatusCode code,
273 const String& message,
|
274 kumpf 1.15 const String& file,
|
275 kumpf 1.1 Uint32 line)
|
276 kumpf 1.22 : CIMException(code, message)
|
277 kumpf 1.1 {
|
278 kumpf 1.5 CIMExceptionRep* rep;
279 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
280 rep->file = file;
281 rep->line = line;
|
282 chuck 1.7
|
283 kumpf 1.26 // Get the cim message from the code. Ignore the content languages from
284 // this operation, since the cimMessage string is only localized when the
285 // code is invalid.
286 cimStatusCodeToString_Thread(rep->cimMessage, code);
|
287 chuck 1.7 }
288
289 TraceableCIMException::TraceableCIMException(
|
290 kumpf 1.22 const ContentLanguageList& langs,
|
291 chuck 1.7 CIMStatusCode code,
292 const String& message,
|
293 kumpf 1.15 const String& file,
|
294 chuck 1.7 Uint32 line)
|
295 kumpf 1.22 : CIMException(code, message)
|
296 chuck 1.7 {
297 CIMExceptionRep* rep;
298 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
299 rep->file = file;
300 rep->line = line;
301
|
302 kumpf 1.22 rep->contentLanguages = langs;
|
303 kumpf 1.2 }
|
304 kumpf 1.1
|
305 kumpf 1.2 TraceableCIMException::TraceableCIMException(const CIMException & cimException)
306 : CIMException(cimException.getCode(), cimException.getMessage())
307 {
308 TraceableCIMException * t = (TraceableCIMException *)&cimException;
|
309 kumpf 1.5 CIMExceptionRep* left;
310 CIMExceptionRep* right;
311 left = reinterpret_cast<CIMExceptionRep*>(_rep);
312 right = reinterpret_cast<CIMExceptionRep*>(t->_rep);
313 left->file = right->file;
314 left->line = right->line;
|
315 kumpf 1.22 left->contentLanguages = right->contentLanguages;
|
316 chuck 1.7 left->cimMessage = right->cimMessage;
|
317 kumpf 1.1 }
318
319 //
320 // Returns a description string fit for human consumption
321 //
|
322 kumpf 1.2 String TraceableCIMException::getDescription() const
|
323 kumpf 1.1 {
|
324 kumpf 1.2 #ifdef PEGASUS_DEBUG_CIMEXCEPTION
|
325 kumpf 1.1 return getTraceDescription();
326 #else
|
327 kumpf 1.5 CIMExceptionRep* rep;
328 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
|
329 chuck 1.8
|
330 kumpf 1.22 if (rep->cimMessage == String::EMPTY)
331 {
332 return _makeCIMExceptionDescription(
333 rep->code, getMessage(), rep->contentLanguages);
334 }
335 else
336 {
337 return _makeCIMExceptionDescription(rep->cimMessage, getMessage());
338 }
|
339 kumpf 1.1 #endif
340 }
341
342 //
343 // Returns a description string with filename and line number information
344 // specifically for tracing.
345 //
|
346 kumpf 1.2 String TraceableCIMException::getTraceDescription() const
|
347 kumpf 1.1 {
|
348 kumpf 1.5 CIMExceptionRep* rep;
349 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
|
350 kumpf 1.1 String traceDescription =
|
351 kumpf 1.2 _makeCIMExceptionDescription(
|
352 kumpf 1.5 rep->code, getMessage(), rep->file, rep->line);
|
353 kumpf 1.1
354 return traceDescription;
355 }
356
|
357 kumpf 1.15 String TraceableCIMException::getCIMMessage() const
358 {
359 CIMExceptionRep* rep;
360 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
361 return rep->cimMessage;
362 }
363
364 void TraceableCIMException::setCIMMessage(const String& cimMessage)
365 {
366 CIMExceptionRep* rep;
367 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
368 rep->cimMessage = cimMessage;
369 }
370
371 String TraceableCIMException::getFile() const
372 {
373 CIMExceptionRep* rep;
374 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
375 return rep->file;
376 }
377
378 kumpf 1.15 Uint32 TraceableCIMException::getLine() const
379 {
380 CIMExceptionRep* rep;
381 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
382 return rep->line;
383 }
384
|
385 kumpf 1.18 const ContentLanguageList& TraceableCIMException::getContentLanguages() const
|
386 kumpf 1.15 {
387 CIMExceptionRep* rep;
388 rep = reinterpret_cast<CIMExceptionRep*>(_rep);
389 return rep->contentLanguages;
390 }
391
|
392 mike 1.20 //==============================================================================
393 //
394 // NullPointer
395 //
396 //==============================================================================
397
|
398 kumpf 1.22 NullPointer::NullPointer()
399 : Exception(MessageLoaderParms(
400 NullPointer::KEY,
401 NullPointer::MSG))
|
402 mike 1.20 {
|
403 kumpf 1.22 }
|
404 mike 1.20
405 NullPointer::~NullPointer()
406 {
407 }
408
409 //==============================================================================
410 //
411 // UndeclaredQualifier
412 //
413 //==============================================================================
414
|
415 kumpf 1.22 UndeclaredQualifier::UndeclaredQualifier(const String& qualifierName)
416 : Exception(MessageLoaderParms(
417 UndeclaredQualifier::KEY,
418 UndeclaredQualifier::MSG,
419 qualifierName))
|
420 mike 1.20 {
|
421 kumpf 1.22 }
|
422 mike 1.20
423 UndeclaredQualifier::~UndeclaredQualifier()
424 {
425 }
426
427 //==============================================================================
428 //
429 // BadQualifierScope
430 //
431 //==============================================================================
432
433 BadQualifierScope::BadQualifierScope(
|
434 kumpf 1.22 const String& qualifierName,
435 const String& scopeString)
436 : Exception(MessageLoaderParms(KEY, MSG, qualifierName, scopeString))
437 {
|
438 mike 1.20 }
439
440 BadQualifierScope::~BadQualifierScope()
441 {
442 }
443
444 //==============================================================================
445 //
446 // BadQualifierOverride
447 //
448 //==============================================================================
449
|
450 kumpf 1.22 BadQualifierOverride::BadQualifierOverride(const String& qualifierName)
451 : Exception(MessageLoaderParms(
452 BadQualifierOverride::KEY,
453 BadQualifierOverride::MSG,
454 qualifierName))
|
455 mike 1.20 {
|
456 kumpf 1.22 }
|
457 mike 1.20
458 BadQualifierOverride::~BadQualifierOverride()
459 {
460 }
461
462 //==============================================================================
463 //
464 // BadQualifierType
465 //
466 //==============================================================================
467
|
468 kumpf 1.22 BadQualifierType::BadQualifierType(const String& qualifierName)
469 : Exception(MessageLoaderParms(KEY, MSG, qualifierName))
470 {
471 }
|
472 mike 1.20
473 BadQualifierType::~BadQualifierType()
474 {
475 }
476
477 //==============================================================================
478 //
479 // InstantiatedAbstractClass
480 //
481 //==============================================================================
482
|
483 kumpf 1.22 InstantiatedAbstractClass::InstantiatedAbstractClass(const String& className)
484 : Exception(MessageLoaderParms(
485 InstantiatedAbstractClass::KEY,
486 InstantiatedAbstractClass::MSG,
487 className))
|
488 mike 1.20 {
|
489 kumpf 1.22 }
|
490 mike 1.20
491 InstantiatedAbstractClass::~InstantiatedAbstractClass()
492 {
493 }
494
495 //==============================================================================
496 //
497 // NoSuchProperty
498 //
499 //==============================================================================
500
|
501 kumpf 1.22 NoSuchProperty::NoSuchProperty(const String& propertyName)
502 : Exception(MessageLoaderParms(
503 NoSuchProperty::KEY,
504 NoSuchProperty::MSG,
505 propertyName))
|
506 mike 1.20 {
|
507 kumpf 1.22 }
|
508 mike 1.20
509 NoSuchProperty::~NoSuchProperty()
510 {
511 }
512
513 //==============================================================================
514 //
515 // NoSuchFile
516 //
517 //==============================================================================
518
|
519 kumpf 1.22 NoSuchFile::NoSuchFile(const String& fileName)
520 : Exception(MessageLoaderParms(
521 NoSuchFile::KEY,
522 NoSuchFile::MSG,
523 fileName))
|
524 mike 1.20 {
|
525 kumpf 1.22 }
|
526 mike 1.20
527 NoSuchFile::~NoSuchFile()
528 {
529 }
530
531 //==============================================================================
532 //
533 // FileNotReadable
534 //
535 //==============================================================================
536
|
537 kumpf 1.22 FileNotReadable::FileNotReadable(const String& fileName)
538 : Exception(MessageLoaderParms(
539 FileNotReadable::KEY,
540 FileNotReadable::MSG,
541 fileName))
|
542 mike 1.20 {
|
543 kumpf 1.22 }
|
544 mike 1.20
545 FileNotReadable::~FileNotReadable()
546 {
547 }
548
549 //==============================================================================
550 //
551 // CannotRemoveDirectory
552 //
553 //==============================================================================
554
|
555 kumpf 1.22 CannotRemoveDirectory::CannotRemoveDirectory(const String& arg)
556 : Exception(MessageLoaderParms(
557 CannotRemoveDirectory::KEY,
558 CannotRemoveDirectory::MSG,
559 arg))
|
560 mike 1.20 {
|
561 kumpf 1.22 }
|
562 mike 1.20
563 CannotRemoveDirectory::~CannotRemoveDirectory()
564 {
565 }
566
567 //==============================================================================
568 //
569 // CannotRemoveFile
570 //
571 //==============================================================================
572
|
573 kumpf 1.22 CannotRemoveFile::CannotRemoveFile(const String& path)
574 : Exception(MessageLoaderParms(
575 CannotRemoveFile::KEY,
576 CannotRemoveFile::MSG,
577 path))
|
578 mike 1.20 {
|
579 kumpf 1.22 }
|
580 mike 1.20
581 CannotRemoveFile::~CannotRemoveFile()
582 {
583 }
584
585 //==============================================================================
586 //
587 // CannotRenameFile
588 //
589 //==============================================================================
590
|
591 kumpf 1.22 CannotRenameFile::CannotRenameFile(const String& path)
592 : Exception(MessageLoaderParms(
593 CannotRenameFile::KEY,
594 CannotRenameFile::MSG,
595 path))
|
596 mike 1.20 {
|
597 kumpf 1.22 }
|
598 mike 1.20
599 CannotRenameFile::~CannotRenameFile()
600 {
601 }
602
603 //==============================================================================
604 //
605 // NoSuchDirectory
606 //
607 //==============================================================================
608
|
609 kumpf 1.22 NoSuchDirectory::NoSuchDirectory(const String& dirName)
610 : Exception(MessageLoaderParms(
611 NoSuchDirectory::KEY,
612 NoSuchDirectory::MSG,
613 dirName))
|
614 mike 1.20 {
|
615 kumpf 1.22 }
|
616 mike 1.20
617 NoSuchDirectory::~NoSuchDirectory()
618 {
619 }
620
621 //==============================================================================
622 //
623 // CannotCreateDirectory
624 //
625 //==============================================================================
626
|
627 kumpf 1.22 CannotCreateDirectory::CannotCreateDirectory(const String& path)
628 : Exception(MessageLoaderParms(
629 CannotCreateDirectory::KEY,
630 CannotCreateDirectory::MSG,
631 path))
|
632 mike 1.20 {
|
633 kumpf 1.22 }
|
634 mike 1.20
635 CannotCreateDirectory::~CannotCreateDirectory()
636 {
637 }
638
639 //==============================================================================
640 //
641 // CannotOpenFile
642 //
643 //==============================================================================
644
|
645 kumpf 1.22 CannotOpenFile::CannotOpenFile(const String& path)
646 : Exception(MessageLoaderParms(
647 CannotOpenFile::KEY,
648 CannotOpenFile::MSG,
649 path))
|
650 mike 1.20 {
|
651 kumpf 1.22 }
|
652 mike 1.20
653 CannotOpenFile::~CannotOpenFile()
654 {
655 }
656
657 //==============================================================================
658 //
659 // NotImplemented
660 //
661 //==============================================================================
662
|
663 kumpf 1.22 NotImplemented::NotImplemented(const String& method)
664 : Exception(MessageLoaderParms(
665 NotImplemented::KEY,
666 NotImplemented::MSG,
667 method))
|
668 mike 1.20 {
|
669 kumpf 1.22 }
|
670 mike 1.20
671 NotImplemented::~NotImplemented()
672 {
673 }
674
675 //==============================================================================
676 //
677 // StackUnderflow
678 //
679 //==============================================================================
680
|
681 kumpf 1.22 StackUnderflow::StackUnderflow()
682 : Exception(MessageLoaderParms(StackUnderflow::KEY, StackUnderflow::MSG))
|
683 mike 1.20 {
|
684 kumpf 1.22 }
|
685 mike 1.20
686 StackUnderflow::~StackUnderflow()
687 {
688 }
689
690 //==============================================================================
691 //
692 // StackOverflow
693 //
694 //==============================================================================
695
|
696 kumpf 1.22 StackOverflow::StackOverflow()
697 : Exception(MessageLoaderParms(StackOverflow::KEY, StackOverflow::MSG))
|
698 mike 1.20 {
|
699 kumpf 1.22 }
|
700 mike 1.20
701 StackOverflow::~StackOverflow()
702 {
703 }
704
705 //==============================================================================
706 //
707 // DynamicLoadFailed
708 //
709 //==============================================================================
710
|
711 kumpf 1.22 DynamicLoadFailed::DynamicLoadFailed(const String& path)
712 : Exception(MessageLoaderParms(
713 DynamicLoadFailed::KEY,
714 DynamicLoadFailed::MSG,
715 path))
|
716 mike 1.20 {
|
717 kumpf 1.22 }
|
718 mike 1.20
719 DynamicLoadFailed::~DynamicLoadFailed()
720 {
721 }
722
723 //==============================================================================
724 //
725 // DynamicLookupFailed
726 //
727 //==============================================================================
728
|
729 kumpf 1.22 DynamicLookupFailed::DynamicLookupFailed(const String& symbol)
730 : Exception(MessageLoaderParms(
731 DynamicLookupFailed::KEY,
732 DynamicLookupFailed::MSG,
733 symbol))
|
734 mike 1.20 {
|
735 kumpf 1.22 }
|
736 mike 1.20
737 DynamicLookupFailed::~DynamicLookupFailed()
738 {
739 }
740
741 //==============================================================================
742 //
743 // CannotOpenDirectory
744 //
745 //==============================================================================
746
|
747 kumpf 1.22 CannotOpenDirectory::CannotOpenDirectory(const String& path)
748 : Exception(MessageLoaderParms(
749 CannotOpenDirectory::KEY,
750 CannotOpenDirectory::MSG,
751 path))
|
752 mike 1.20 {
|
753 kumpf 1.22 }
|
754 mike 1.20
755 CannotOpenDirectory::~CannotOpenDirectory()
756 {
757 }
758
759 //==============================================================================
760 //
761 // ParseError
762 //
763 //==============================================================================
764
|
765 kumpf 1.22 ParseError::ParseError(const String& message)
766 : Exception(MessageLoaderParms(
767 ParseError::KEY,
768 ParseError::MSG,
769 message))
|
770 mike 1.20 {
|
771 kumpf 1.22 }
|
772 mike 1.20
773 ParseError::~ParseError()
774 {
775 }
776
777 //==============================================================================
778 //
779 // MissingNullTerminator
780 //
781 //==============================================================================
782
|
783 kumpf 1.22 MissingNullTerminator::MissingNullTerminator()
784 : Exception(MessageLoaderParms(
785 MissingNullTerminator::KEY,
786 MissingNullTerminator::MSG))
|
787 mike 1.20 {
|
788 kumpf 1.22 }
|
789 mike 1.20
790 MissingNullTerminator::~MissingNullTerminator()
791 {
792 }
793
794 //==============================================================================
795 //
796 // MalformedLanguageHeader
797 //
798 //==============================================================================
799
|
800 kumpf 1.22 MalformedLanguageHeader::MalformedLanguageHeader(const String& error)
801 : Exception(MessageLoaderParms(
802 MalformedLanguageHeader::KEY,
803 MalformedLanguageHeader::MSG,
804 error))
|
805 mike 1.20 {
|
806 kumpf 1.22 }
|
807 mike 1.20
808 MalformedLanguageHeader::~MalformedLanguageHeader()
809 {
810 }
811
812 //==============================================================================
813 //
814 // InvalidAcceptLanguageHeader
815 //
816 //==============================================================================
817
|
818 kumpf 1.22 InvalidAcceptLanguageHeader::InvalidAcceptLanguageHeader(const String& error)
819 : Exception(MessageLoaderParms(
820 InvalidAcceptLanguageHeader::KEY,
821 InvalidAcceptLanguageHeader::MSG,
822 error))
|
823 mike 1.20 {
|
824 kumpf 1.22 }
|
825 mike 1.20
826 InvalidAcceptLanguageHeader::~InvalidAcceptLanguageHeader()
827 {
828 }
829
830 //==============================================================================
831 //
832 // InvalidContentLanguageHeader
833 //
834 //==============================================================================
835
|
836 kumpf 1.22 InvalidContentLanguageHeader::InvalidContentLanguageHeader(const String& error)
837 : Exception(MessageLoaderParms(
838 InvalidContentLanguageHeader::KEY,
839 InvalidContentLanguageHeader::MSG,
840 error))
|
841 mike 1.20 {
|
842 kumpf 1.22 }
|
843 mike 1.20
844 InvalidContentLanguageHeader::~InvalidContentLanguageHeader()
845 {
846 }
847
848 //==============================================================================
849 //
850 // InvalidAuthHeader
851 //
852 //==============================================================================
853
|
854 kumpf 1.22 InvalidAuthHeader::InvalidAuthHeader()
855 : Exception(MessageLoaderParms(
856 InvalidAuthHeader::KEY,
857 InvalidAuthHeader::MSG))
|
858 mike 1.20 {
|
859 kumpf 1.22 }
|
860 mike 1.20
861 InvalidAuthHeader::~InvalidAuthHeader()
862 {
863 }
864
865 //==============================================================================
866 //
867 // UnauthorizedAccess
868 //
869 //==============================================================================
870
|
871 kumpf 1.22 UnauthorizedAccess::UnauthorizedAccess()
872 : Exception(MessageLoaderParms(
873 UnauthorizedAccess::KEY,
874 UnauthorizedAccess::MSG))
|
875 mike 1.20 {
|
876 kumpf 1.22 }
|
877 mike 1.20
878 UnauthorizedAccess::~UnauthorizedAccess()
879 {
880 }
881
882 //==============================================================================
883 //
884 // IncompatibleTypesException
885 //
886 //==============================================================================
887
|
888 kumpf 1.22 IncompatibleTypesException::IncompatibleTypesException()
889 : Exception("incompatible types")
|
890 mike 1.20 {
891 }
892
893 IncompatibleTypesException::~IncompatibleTypesException()
894 {
895 }
896
897 //==============================================================================
898 //
899 // InternalSystemError
900 //
901 //==============================================================================
902
|
903 kumpf 1.22 InternalSystemError::InternalSystemError()
904 : Exception(InternalSystemError::MSG)
|
905 mike 1.20 {
|
906 kumpf 1.22 }
|
907 mike 1.20
908 InternalSystemError::~InternalSystemError()
909 {
910 }
911
|
912 marek 1.27 void ThrowUninitializedObjectException()
913 {
914 throw UninitializedObjectException();
915 }
916
|
917 kumpf 1.1 PEGASUS_NAMESPACE_END
|