(file) Return to InternalException.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

   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            // Author: Mike Brasher (mbrasher@bmc.com)
  33            //
  34 kumpf 1.1  // Modified By: Nag Boranna (nagaraja_boranna@hp.com)
  35            //
  36            // Modified By: Jenny Yu (jenny_yu@am.exch.hp.com)
  37            //              Carol Ann Krug Graves, Hewlett-Packard Company
  38            //                (carolann_graves@hp.com)
  39 chuck 1.7  // 
  40 kumpf 1.1  //%/////////////////////////////////////////////////////////////////////////////
  41            
  42            #include <cstdio>
  43            #include "InternalException.h"
  44 kumpf 1.2  #include <Pegasus/Common/CIMExceptionRep.h>
  45 kumpf 1.18 #include <Pegasus/Common/ContentLanguageList.h>
  46 kumpf 1.1  #include "Tracer.h"
  47            
  48            PEGASUS_NAMESPACE_BEGIN
  49            
  50            AssertionFailureException::AssertionFailureException(
  51                const char* file,
  52                size_t line,
  53 kumpf 1.2      const String& message) : Exception(String::EMPTY)
  54 kumpf 1.1  {
  55                char lineStr[32];
  56 kumpf 1.6      sprintf(lineStr, "%u", Uint32(line));
  57 kumpf 1.1  
  58 kumpf 1.5      _rep->message = file;
  59                _rep->message.append("(");
  60                _rep->message.append(lineStr);
  61                _rep->message.append("): ");
  62                _rep->message.append(message);
  63 kumpf 1.1  
  64 kumpf 1.15     PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL2, _rep->message);
  65 kumpf 1.1  }
  66            
  67 mike  1.20 AssertionFailureException::~AssertionFailureException()
  68            {
  69            }
  70            
  71 kumpf 1.1  const char NullPointer::MSG[] = "null pointer";
  72 humberto 1.11 const char NullPointer::KEY[] = "Common.InternalException.NULL_POINTER";
  73 kumpf    1.1  
  74 humberto 1.12 //l10n 
  75 humberto 1.9  const char UndeclaredQualifier::MSG[] = "undeclared qualifier: $0";
  76 humberto 1.11 const char UndeclaredQualifier::KEY[] = "Common.InternalException.UNDECLARED_QUALIFIER";
  77 kumpf    1.1  
  78 humberto 1.12 //l10n 
  79               const char BadQualifierScope::MSG[] = "qualifier invalid in this scope: $0 scope=$1";
  80 humberto 1.11 const char BadQualifierScope::KEY[] = "Common.InternalException.BAD_QUALIFIER_SCOPE";
  81 kumpf    1.1  
  82 humberto 1.12 //l10n 
  83               const char BadQualifierOverride::MSG[] = "qualifier not overridable: $0";
  84 humberto 1.11 const char BadQualifierOverride::KEY[] = "Common.InternalException.BAD_QUALIFIER_OVERRIDE"; 
  85 kumpf    1.1  
  86 humberto 1.12 //l10n 
  87               const char BadQualifierType::MSG[] = "CIMType of qualifier different than its declaration: $0";
  88 humberto 1.11 const char BadQualifierType::KEY[] = "Common.InternalException.BAD_QUALIFIER_TYPE";
  89 kumpf    1.1  
  90 humberto 1.12 const char ClassAlreadyResolved::MSG[] = "attempt to resolve a class that is already resolved: $0";
  91 humberto 1.11 const char ClassAlreadyResolved::KEY[] = "Common.InternalException.CLASS_ALREADY_RESOLVED";
  92 kumpf    1.1  
  93 humberto 1.12 //l10n 
  94               const char ClassNotResolved::MSG[] = "class is not yet resolved: $0";
  95 humberto 1.11 const char ClassNotResolved::KEY[] = "Common.InternalException.CLASS_NOT_RESOLVED";
  96 kumpf    1.1  
  97 chuck    1.8  const char InstanceAlreadyResolved::MSG[] = "attempted to resolve a instance that is already resolved";
  98 humberto 1.11 const char InstanceAlreadyResolved::KEY[] = "Common.InternalException.INSTANCE_ALREADY_RESOLVED"; 
  99 kumpf    1.1  
 100 humberto 1.12 //l10n 
 101               const char InstantiatedAbstractClass::MSG[] = "attempted to instantiate an abstract class $0";
 102 humberto 1.11 const char InstantiatedAbstractClass::KEY[] = "Common.InternalException.INSTANTIATED_ABSTRACT_CLASS"; 
 103 kumpf    1.1  
 104 humberto 1.12 //l10n 
 105               const char NoSuchProperty::MSG[] = "no such property: $0";
 106 humberto 1.11 const char NoSuchProperty::KEY[] = "Common.InternalException.NO_SUCH_PROPERTY";
 107 kumpf    1.1  
 108 humberto 1.12 //l10n 
 109               const char NoSuchFile::MSG[] = "no such file: $0";
 110 humberto 1.11 const char NoSuchFile::KEY[] = "Common.InternalException.NO_SUCH_FILE";
 111 kumpf    1.1  
 112 humberto 1.12 //l10n 
 113               const char FileNotReadable::MSG[] = "file not readable: $0";
 114 humberto 1.11 const char FileNotReadable::KEY[] = "Common.InternalException.FILE_NOT_READABLE";
 115 kumpf    1.1  
 116 humberto 1.12 //l10n 
 117               const char CannotRemoveDirectory::MSG[] = "cannot remove directory: $0";
 118 humberto 1.11 const char CannotRemoveDirectory::KEY[] = "Common.InternalException.CANNOT_REMOVE_DIRECTORY";  
 119 kumpf    1.1  
 120 humberto 1.12 //l10n 
 121               const char CannotRemoveFile::MSG[] = "cannot remove file: $0";
 122 humberto 1.11 const char CannotRemoveFile::KEY[] = "Common.InternalException.CANNOT_REMOVE_FILE"; 
 123 kumpf    1.1  
 124 humberto 1.12 //l10n 
 125               const char CannotRenameFile::MSG[] = "cannot rename file: $0";
 126 humberto 1.11 const char CannotRenameFile::KEY[] = "Common.InternalException.CANNOT_RENAME_FILE";
 127 kumpf    1.1  
 128 humberto 1.12 //l10n 
 129               const char NoSuchDirectory::MSG[] = "no such directory: $0";
 130 humberto 1.11 const char NoSuchDirectory::KEY[] = "Common.InternalException.NO_SUCH_DIRECTORY";  
 131 kumpf    1.1  
 132 humberto 1.12 //l10n 
 133               const char CannotCreateDirectory::MSG[] = "cannot create directory: $0";
 134 humberto 1.11 const char CannotCreateDirectory::KEY[] = "Common.InternalException.CANNOT_CREATE_DIRECTORY";
 135 kumpf    1.1  
 136 humberto 1.12 //l10n 
 137               const char CannotOpenFile::MSG[] = "cannot open file: $0";
 138 humberto 1.11 const char CannotOpenFile::KEY[] = "Common.InternalException.CANNOT_OPEN_FILE";
 139 kumpf    1.1  
 140 humberto 1.12 //l10n 
 141               const char NotImplemented::MSG[] = "not implemented: $0";
 142 humberto 1.11 const char NotImplemented::KEY[] = "Common.InternalException.NOT_IMPLEMENTED"; 
 143 kumpf    1.1  
 144               const char StackUnderflow::MSG[] = "stack underflow";
 145 humberto 1.11 const char StackUnderflow::KEY[] = "Common.InternalException.STACK_UNDERFLOW";
 146 kumpf    1.1  
 147               const char StackOverflow::MSG[] = "stack overflow";
 148 humberto 1.11 const char StackOverflow::KEY[] = "Common.InternalException.STACK_OVERFLOW"; 
 149 kumpf    1.1  
 150               const char BadFormat::MSG[] = "bad format passed to Formatter::format()";
 151 humberto 1.11 const char BadFormat::KEY[] = "Common.InternalException.BAD_FORMAT";
 152 kumpf    1.1  
 153               const char BadlyFormedCGIQueryString::MSG[] = "badly formed CGI query string";
 154 humberto 1.11 const char BadlyFormedCGIQueryString::KEY[] = "Common.InternalException.BADLY_FORMED_CGI_QUERY_STRING"; 
 155 kumpf    1.1  
 156 humberto 1.12 //l10n 
 157               const char DynamicLoadFailed::MSG[] = "load of dynamic library failed: $0";
 158 humberto 1.11 const char DynamicLoadFailed::KEY[] = "Common.InternalException.DYNAMIC_LOAD_FAILED";
 159 kumpf    1.1  
 160 humberto 1.12 //l10n 
 161               const char DynamicLookupFailed::MSG[] = "lookup of symbol in dynamic library failed: $0";
 162 humberto 1.11 const char DynamicLookupFailed::KEY[] = "Common.InternalException.DYNAMIC_LOOKUP_FAILED";
 163 kumpf    1.1  
 164 humberto 1.12 //l10n 
 165               const char CannotOpenDirectory::MSG[] = "cannot open directory: $0";
 166 humberto 1.11 const char CannotOpenDirectory::KEY[] = "Common.InternalException.CANNOT_OPEN_DIRECTORY"; 
 167 kumpf    1.1  
 168 humberto 1.12 //l10n 
 169               const char ParseError::MSG[] = "parse error: $0";
 170 humberto 1.11 const char ParseError::KEY[] = "Common.InternalException.PARSE_ERROR";
 171 kumpf    1.1  
 172 humberto 1.12 //l10n 
 173               const char MissingNullTerminator::MSG[] = "missing null terminator: $0";
 174 humberto 1.11 const char MissingNullTerminator::KEY[] = "Common.InternalException.MISSING_NULL_TERMINATOR";
 175 kumpf    1.1  
 176 chuck    1.7  //l10n
 177 humberto 1.12 const char MalformedLanguageHeader::MSG[] = "malformed language header: $0";
 178 humberto 1.11 const char MalformedLanguageHeader::KEY[] = "Common.InternalException.MALFORMED_LANGUAGE_HEADER";
 179 chuck    1.7  
 180 humberto 1.12 //l10n 
 181               const char InvalidAcceptLanguageHeader::MSG[] = "invalid acceptlanguage header: $0";
 182 humberto 1.11 const char InvalidAcceptLanguageHeader::KEY[] = "Common.InternalException.INVALID_ACCEPTLANGUAGE_HEADER";
 183 chuck    1.7  
 184 humberto 1.12 //l10n 
 185               const char InvalidContentLanguageHeader::MSG[] = "invalid contentlanguage header: $0";
 186 humberto 1.11 const char InvalidContentLanguageHeader::KEY[] = "Common.InternalException.INVALID_CONTENTLANGUAGE_HEADER";
 187 chuck    1.7  
 188 kumpf    1.1  const char InvalidAuthHeader::MSG[] = "Invalid Authorization header";
 189 humberto 1.11 const char InvalidAuthHeader::KEY[] = "Common.InternalException.INVALID_AUTH_HEADER"; 
 190 kumpf    1.1  
 191               const char UnauthorizedAccess::MSG[] = "Unauthorized access";
 192 humberto 1.11 const char UnauthorizedAccess::KEY[] = "Common.InternalException.UNAUTHORIZED_ACCESS";  
 193 kumpf    1.1  
 194 kumpf    1.14 const char InternalSystemError::MSG[] = "Unable to authenticate user";
 195               
 196 kumpf    1.1  ////////////////////////////////////////////////////////////////////////////////
 197               //
 198 kumpf    1.2  // TraceableCIMException
 199 kumpf    1.1  //
 200               ////////////////////////////////////////////////////////////////////////////////
 201               
 202               //
 203               // Creates a description without source file name and line number.
 204               //
 205               static String _makeCIMExceptionDescription(
 206                   CIMStatusCode code,
 207                   const String& message)
 208               {
 209                   String tmp;
 210                   tmp.append(cimStatusCodeToString(code));
 211                   if (message != String::EMPTY)
 212                   {
 213                       tmp.append(": \"");
 214                       tmp.append(message);
 215                       tmp.append("\"");
 216                   }
 217                   return tmp;
 218               }
 219               
 220 chuck    1.7  // l10n
 221               //
 222               // Creates a description without source file name and line number.
 223               //
 224               static String _makeCIMExceptionDescription(
 225                   CIMStatusCode code,
 226                   const String& message,
 227 kumpf    1.18     ContentLanguageList& contentLanguages)
 228 chuck    1.7  {
 229                   String tmp;
 230                   tmp = cimStatusCodeToString(code, contentLanguages);
 231                   if (message != String::EMPTY)
 232                   {
 233                       tmp.append(": \"");
 234                       tmp.append(message);
 235                       tmp.append("\"");
 236                   }
 237                   return tmp;
 238               }
 239               
 240               // l10n
 241               //
 242               // Creates a description without source file name and line number.
 243               //
 244               static String _makeCIMExceptionDescription(
 245                   const String& cimMessage,
 246                   const String& extraMessage)
 247               {
 248                   String tmp;
 249 chuck    1.7      tmp = cimMessage;
 250                   if (extraMessage != String::EMPTY)
 251                   {
 252                       tmp.append(": \"");
 253                       tmp.append(extraMessage);
 254                       tmp.append("\"");
 255                   }
 256                   return tmp;
 257               }
 258               
 259 kumpf    1.1  //
 260               // Creates a description with source file name and line number.
 261               //
 262               static String _makeCIMExceptionDescription(
 263                   CIMStatusCode code,
 264                   const String& message,
 265 kumpf    1.15     const String& file,
 266 kumpf    1.1      Uint32 line)
 267               {
 268                   String tmp = file;
 269                   tmp.append("(");
 270                   char buffer[32];
 271                   sprintf(buffer, "%d", line);
 272                   tmp.append(buffer);
 273                   tmp.append("): ");
 274                   tmp.append(_makeCIMExceptionDescription(code, message));
 275                   return tmp;
 276               }
 277               
 278 humberto 1.10 //l10n 
 279               TraceableCIMException::TraceableCIMException(
 280                   CIMStatusCode code,
 281                   MessageLoaderParms parms,
 282 kumpf    1.15     const String& file,
 283 humberto 1.10     Uint32 line)
 284                   :
 285                   CIMException(code, parms)
 286               {
 287                   CIMExceptionRep* rep;
 288                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 289                   rep->file = file;
 290                   rep->line = line;
 291               
 292               // l10n
 293               	// Localize the cim message from the code.  Use the language of
 294               	// the current thread.
 295               	rep->contentLanguages = cimStatusCodeToString_Thread(rep->cimMessage, code);
 296               }
 297               
 298 kumpf    1.2  TraceableCIMException::TraceableCIMException(
 299 kumpf    1.1      CIMStatusCode code,
 300                   const String& message,
 301 kumpf    1.15     const String& file,
 302 kumpf    1.1      Uint32 line)
 303                   :
 304 kumpf    1.2      CIMException(code, message)
 305 kumpf    1.1  {
 306 kumpf    1.5      CIMExceptionRep* rep;
 307                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 308                   rep->file = file;
 309                   rep->line = line;
 310 chuck    1.7  
 311               // l10n
 312               	// Localize the cim message from the code.  Use the language of
 313               	// the current thread.
 314               	rep->contentLanguages = cimStatusCodeToString_Thread(rep->cimMessage, code);
 315               }
 316               
 317               // l10n
 318               TraceableCIMException::TraceableCIMException(
 319 kumpf    1.18 	const ContentLanguageList& langs,
 320 chuck    1.7      CIMStatusCode code,
 321                   const String& message,
 322 kumpf    1.15     const String& file,
 323 chuck    1.7      Uint32 line)
 324                   :
 325                   CIMException(code, message)
 326               {
 327                   CIMExceptionRep* rep;
 328                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 329                   rep->file = file;
 330                   rep->line = line;
 331               
 332               // l10n
 333               	rep->contentLanguages = langs;
 334 kumpf    1.2  }
 335 kumpf    1.1  
 336 kumpf    1.2  TraceableCIMException::TraceableCIMException(const CIMException & cimException)
 337                   : CIMException(cimException.getCode(), cimException.getMessage())
 338               {
 339                   TraceableCIMException * t = (TraceableCIMException *)&cimException;
 340 kumpf    1.5      CIMExceptionRep* left;
 341                   CIMExceptionRep* right;
 342                   left = reinterpret_cast<CIMExceptionRep*>(_rep);
 343                   right = reinterpret_cast<CIMExceptionRep*>(t->_rep);
 344                   left->file = right->file;
 345                   left->line = right->line;
 346 chuck    1.7  // l10n    
 347                   left->contentLanguages = right->contentLanguages;    
 348                   left->cimMessage = right->cimMessage;
 349 kumpf    1.1  }
 350               
 351               //
 352               // Returns a description string fit for human consumption
 353               //
 354 kumpf    1.2  String TraceableCIMException::getDescription() const
 355 kumpf    1.1  {
 356 kumpf    1.2  #ifdef PEGASUS_DEBUG_CIMEXCEPTION
 357 kumpf    1.1      return getTraceDescription();
 358               #else
 359 kumpf    1.5      CIMExceptionRep* rep;
 360                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 361 chuck    1.8  	
 362 chuck    1.7  	if (rep->cimMessage == String::EMPTY)
 363               	{
 364               	    return _makeCIMExceptionDescription(rep->code, 
 365                   										getMessage(),
 366                   										rep->contentLanguages);    		
 367               	}
 368               	else
 369               	{
 370               		return _makeCIMExceptionDescription(rep->cimMessage,
 371               											getMessage());
 372               	}
 373 chuck    1.8  
 374 kumpf    1.1  #endif
 375               }
 376               
 377               //
 378               // Returns a description string with filename and line number information
 379               // specifically for tracing.
 380               //
 381 kumpf    1.2  String TraceableCIMException::getTraceDescription() const
 382 kumpf    1.1  {
 383 kumpf    1.5      CIMExceptionRep* rep;
 384                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 385 kumpf    1.1      String traceDescription =
 386 kumpf    1.2          _makeCIMExceptionDescription(
 387 kumpf    1.5              rep->code, getMessage(), rep->file, rep->line);
 388 kumpf    1.1  
 389                   return traceDescription;
 390               }
 391               
 392 kumpf    1.15 String TraceableCIMException::getCIMMessage() const
 393               {
 394                   CIMExceptionRep* rep;
 395                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 396                   return rep->cimMessage;
 397               }
 398               
 399               void TraceableCIMException::setCIMMessage(const String& cimMessage)
 400               {
 401                   CIMExceptionRep* rep;
 402                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 403                   rep->cimMessage = cimMessage;
 404               }
 405               
 406               String TraceableCIMException::getFile() const
 407               {
 408                   CIMExceptionRep* rep;
 409                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 410                   return rep->file;
 411               }
 412               
 413 kumpf    1.15 Uint32 TraceableCIMException::getLine() const
 414               {
 415                   CIMExceptionRep* rep;
 416                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 417                   return rep->line;
 418               }
 419               
 420 kumpf    1.18 const ContentLanguageList& TraceableCIMException::getContentLanguages() const
 421 kumpf    1.15 {
 422                   CIMExceptionRep* rep;
 423                   rep = reinterpret_cast<CIMExceptionRep*>(_rep);
 424                   return rep->contentLanguages;
 425               }
 426               
 427 mike     1.20 //==============================================================================
 428               //
 429               // NullPointer
 430               //
 431               //==============================================================================
 432               
 433               NullPointer::NullPointer() : 
 434                   Exception(MessageLoaderParms(
 435                   NullPointer::KEY, 
 436                   NullPointer::MSG))
 437               {
 438               }    
 439               
 440               NullPointer::~NullPointer()
 441               {
 442               }
 443               
 444               //==============================================================================
 445               //
 446               // UndeclaredQualifier
 447               //
 448 mike     1.20 //==============================================================================
 449               
 450               UndeclaredQualifier::UndeclaredQualifier(const String& qualifierName) : 
 451                   Exception(MessageLoaderParms(
 452                   UndeclaredQualifier::KEY, 
 453                   UndeclaredQualifier::MSG,
 454                   qualifierName)) 
 455               {
 456               }    
 457               
 458               UndeclaredQualifier::~UndeclaredQualifier()
 459               {
 460               }
 461               
 462               //==============================================================================
 463               //
 464               // BadQualifierScope
 465               //
 466               //==============================================================================
 467               
 468               BadQualifierScope::BadQualifierScope(
 469 mike     1.20     const String& qualifierName, 
 470                   const String& scopeString) : 
 471                   Exception(MessageLoaderParms(KEY, 
 472               	MSG,
 473               	qualifierName,
 474               	scopeString)) 
 475               { 
 476               
 477               }
 478               
 479               BadQualifierScope::~BadQualifierScope()
 480               {
 481               }
 482               
 483               //==============================================================================
 484               //
 485               // BadQualifierOverride
 486               //
 487               //==============================================================================
 488               
 489               BadQualifierOverride::BadQualifierOverride(const String& qualifierName) : 
 490 mike     1.20     Exception(MessageLoaderParms(
 491               	BadQualifierOverride::KEY, 
 492               	BadQualifierOverride::MSG,
 493               	qualifierName)) 
 494               {
 495               }    
 496               
 497               BadQualifierOverride::~BadQualifierOverride()
 498               {
 499               }
 500               
 501               //==============================================================================
 502               //
 503               // BadQualifierType
 504               //
 505               //==============================================================================
 506               
 507               BadQualifierType::BadQualifierType(const String& qualifierName) : 
 508                   Exception(MessageLoaderParms(KEY, MSG, qualifierName))
 509               { 
 510               
 511 mike     1.20 }		
 512               
 513               BadQualifierType::~BadQualifierType()
 514               {
 515               
 516               }
 517               
 518               //==============================================================================
 519               //
 520               // ClassAlreadyResolved
 521               //
 522               //==============================================================================
 523               
 524               ClassAlreadyResolved::ClassAlreadyResolved(const String& className) : 
 525                   Exception(MessageLoaderParms(
 526               	ClassAlreadyResolved::KEY, 
 527               	ClassAlreadyResolved::MSG,
 528               	className)) 
 529               {
 530               }    
 531               
 532 mike     1.20 ClassAlreadyResolved::~ClassAlreadyResolved()
 533               {
 534               }
 535               
 536               //==============================================================================
 537               //
 538               // ClassNotResolved
 539               //
 540               //==============================================================================
 541               
 542               ClassNotResolved::ClassNotResolved(const String& className) : 
 543                   Exception(MessageLoaderParms(
 544               	ClassNotResolved::KEY, 
 545               	ClassNotResolved::MSG,
 546               	className)) 
 547               {
 548               }
 549               
 550               ClassNotResolved::~ClassNotResolved()
 551               {
 552               }
 553 mike     1.20 
 554               //==============================================================================
 555               //
 556               // InstanceAlreadyResolved
 557               //
 558               //==============================================================================
 559               
 560               InstanceAlreadyResolved::InstanceAlreadyResolved() :
 561                   Exception(MessageLoaderParms(
 562               	InstanceAlreadyResolved::KEY, 
 563               	InstanceAlreadyResolved::MSG))
 564               {
 565               }    
 566               
 567               InstanceAlreadyResolved::~InstanceAlreadyResolved()
 568               {
 569               }
 570               
 571               //==============================================================================
 572               //
 573               // InstantiatedAbstractClass
 574 mike     1.20 //
 575               //==============================================================================
 576               
 577               InstantiatedAbstractClass::InstantiatedAbstractClass(const String& className) : 
 578                   Exception(MessageLoaderParms(
 579                   InstantiatedAbstractClass::KEY, 
 580                   InstantiatedAbstractClass::MSG,
 581                   className)) 
 582               {
 583               }    
 584               
 585               InstantiatedAbstractClass::~InstantiatedAbstractClass()
 586               {
 587               }
 588               
 589               //==============================================================================
 590               //
 591               // NoSuchProperty
 592               //
 593               //==============================================================================
 594               
 595 mike     1.20 NoSuchProperty::NoSuchProperty(const String& propertyName) : 
 596                   Exception(MessageLoaderParms(
 597                   NoSuchProperty::KEY, 
 598                   NoSuchProperty::MSG,
 599                   propertyName)) 
 600               {
 601               }    
 602               
 603               NoSuchProperty::~NoSuchProperty()
 604               {
 605               }
 606               
 607               //==============================================================================
 608               //
 609               // NoSuchFile
 610               //
 611               //==============================================================================
 612               
 613               NoSuchFile::NoSuchFile(const String& fileName) : 
 614                   Exception(MessageLoaderParms(
 615                   NoSuchFile::KEY, 
 616 mike     1.20     NoSuchFile::MSG,
 617                   fileName)) 
 618               {
 619               }    
 620               
 621               NoSuchFile::~NoSuchFile()
 622               {
 623               }
 624               
 625               //==============================================================================
 626               //
 627               // FileNotReadable
 628               //
 629               //==============================================================================
 630               
 631               FileNotReadable::FileNotReadable(const String& fileName) : 
 632                   Exception(MessageLoaderParms(
 633                   FileNotReadable::KEY, 
 634                   FileNotReadable::MSG,
 635                   fileName)) 
 636               {
 637 mike     1.20 }    
 638               
 639               FileNotReadable::~FileNotReadable()
 640               {
 641               }
 642               
 643               //==============================================================================
 644               //
 645               // CannotRemoveDirectory
 646               //
 647               //==============================================================================
 648               
 649               CannotRemoveDirectory::CannotRemoveDirectory(const String& arg) : 
 650                   Exception(MessageLoaderParms(
 651                   CannotRemoveDirectory::KEY, 
 652                   CannotRemoveDirectory::MSG,
 653                   arg)) 
 654               {
 655               }    
 656               
 657               CannotRemoveDirectory::~CannotRemoveDirectory()
 658 mike     1.20 {
 659               }
 660               
 661               //==============================================================================
 662               //
 663               // CannotRemoveFile
 664               //
 665               //==============================================================================
 666               
 667               CannotRemoveFile::CannotRemoveFile(const String& path) : 
 668                   Exception(MessageLoaderParms(
 669                   CannotRemoveFile::KEY, 
 670                   CannotRemoveFile::MSG,
 671                   path)) 
 672               {
 673               }    
 674               
 675               CannotRemoveFile::~CannotRemoveFile()
 676               {
 677               }
 678               
 679 mike     1.20 //==============================================================================
 680               //
 681               // CannotRenameFile
 682               //
 683               //==============================================================================
 684               
 685               CannotRenameFile::CannotRenameFile(const String& path) : 
 686                   Exception(MessageLoaderParms(
 687                   CannotRenameFile::KEY, 
 688                   CannotRenameFile::MSG,
 689                   path)) 
 690               {
 691               }    
 692               
 693               CannotRenameFile::~CannotRenameFile()
 694               {
 695               }
 696               
 697               //==============================================================================
 698               //
 699               // NoSuchDirectory
 700 mike     1.20 //
 701               //==============================================================================
 702               
 703               NoSuchDirectory::NoSuchDirectory(const String& dirName) : 
 704                   Exception(MessageLoaderParms(
 705                   NoSuchDirectory::KEY, 
 706                   NoSuchDirectory::MSG,
 707                   dirName)) 
 708               {
 709               }    
 710               
 711               NoSuchDirectory::~NoSuchDirectory()
 712               {
 713               }
 714               
 715               //==============================================================================
 716               //
 717               // CannotCreateDirectory
 718               //
 719               //==============================================================================
 720               
 721 mike     1.20 CannotCreateDirectory::CannotCreateDirectory(const String& path) : 
 722                   Exception(MessageLoaderParms(
 723                   CannotCreateDirectory::KEY, 
 724                   CannotCreateDirectory::MSG,
 725                   path)) 
 726               {
 727               }    
 728               
 729               CannotCreateDirectory::~CannotCreateDirectory()
 730               {
 731               }
 732               
 733               //==============================================================================
 734               //
 735               // CannotOpenFile
 736               //
 737               //==============================================================================
 738               
 739               CannotOpenFile::CannotOpenFile(const String& path) : 
 740                   Exception(MessageLoaderParms(
 741                   CannotOpenFile::KEY, 
 742 mike     1.20     CannotOpenFile::MSG,
 743                   path)) 
 744               {
 745               }    
 746               
 747               CannotOpenFile::~CannotOpenFile()
 748               {
 749               }
 750               
 751               //==============================================================================
 752               //
 753               // NotImplemented
 754               //
 755               //==============================================================================
 756               
 757               NotImplemented::NotImplemented(const String& method) : 
 758                   Exception(MessageLoaderParms(
 759                   NotImplemented::KEY, 
 760                   NotImplemented::MSG,
 761                   method)) 
 762               {
 763 mike     1.20 }    
 764               
 765               NotImplemented::~NotImplemented()
 766               {
 767               }
 768               
 769               //==============================================================================
 770               //
 771               // StackUnderflow
 772               //
 773               //==============================================================================
 774               
 775               StackUnderflow::StackUnderflow() :
 776                   Exception(MessageLoaderParms(StackUnderflow::KEY, StackUnderflow::MSG))
 777               {
 778               }    
 779               
 780               StackUnderflow::~StackUnderflow()
 781               {
 782               }
 783               
 784 mike     1.20 //==============================================================================
 785               //
 786               // StackOverflow
 787               //
 788               //==============================================================================
 789               
 790               StackOverflow::StackOverflow() : 
 791                   Exception(MessageLoaderParms(StackOverflow::KEY, StackOverflow::MSG))
 792               {
 793               }    
 794               
 795               StackOverflow::~StackOverflow()
 796               {
 797               }
 798               
 799               //==============================================================================
 800               //
 801               // BadFormat
 802               //
 803               //==============================================================================
 804               
 805 mike     1.20 BadFormat::BadFormat() :
 806                   Exception(MessageLoaderParms(BadFormat::KEY, BadFormat::MSG))
 807               {
 808               }    
 809               
 810               BadFormat::~BadFormat()
 811               {
 812               }
 813               
 814               //==============================================================================
 815               //
 816               // BadlyFormedCGIQueryString
 817               //
 818               //==============================================================================
 819               
 820               BadlyFormedCGIQueryString::BadlyFormedCGIQueryString() :
 821                   Exception(MessageLoaderParms(BadFormat::KEY, BadFormat::MSG))
 822               {
 823               }    
 824               
 825               BadlyFormedCGIQueryString::~BadlyFormedCGIQueryString()
 826 mike     1.20 {
 827               }
 828               
 829               //==============================================================================
 830               //
 831               // DynamicLoadFailed
 832               //
 833               //==============================================================================
 834               
 835               DynamicLoadFailed::DynamicLoadFailed(const String& path) : 
 836                   Exception(MessageLoaderParms(
 837                   DynamicLoadFailed::KEY, 
 838                   DynamicLoadFailed::MSG,
 839                   path)) 
 840               {
 841               }    
 842               
 843               DynamicLoadFailed::~DynamicLoadFailed()
 844               {
 845               }
 846               
 847 mike     1.20 //==============================================================================
 848               //
 849               // DynamicLookupFailed
 850               //
 851               //==============================================================================
 852               
 853               DynamicLookupFailed::DynamicLookupFailed(const String& symbol) : 
 854                   Exception(MessageLoaderParms(
 855               	DynamicLookupFailed::KEY, 
 856               	DynamicLookupFailed::MSG,
 857               	symbol)) 
 858               {
 859               }    
 860               
 861               DynamicLookupFailed::~DynamicLookupFailed()
 862               {
 863               }
 864               
 865               //==============================================================================
 866               //
 867               // CannotOpenDirectory
 868 mike     1.20 //
 869               //==============================================================================
 870               
 871               CannotOpenDirectory::CannotOpenDirectory(const String& path) : 
 872                   Exception(MessageLoaderParms(
 873                   CannotOpenDirectory::KEY, 
 874                   CannotOpenDirectory::MSG,
 875                   path)) 
 876               {
 877               }    
 878               
 879               CannotOpenDirectory::~CannotOpenDirectory()
 880               {
 881               }
 882               
 883               //==============================================================================
 884               //
 885               // ParseError
 886               //
 887               //==============================================================================
 888               
 889 mike     1.20 ParseError::ParseError(const String& message) : 
 890                   Exception(MessageLoaderParms(
 891                   ParseError::KEY, 
 892                   ParseError::MSG,
 893                   message)) 
 894               {
 895               }    
 896               
 897               ParseError::~ParseError()
 898               {
 899               }
 900               
 901               //==============================================================================
 902               //
 903               // MissingNullTerminator
 904               //
 905               //==============================================================================
 906               
 907               MissingNullTerminator::MissingNullTerminator() : 
 908                   Exception(MessageLoaderParms(
 909               	MissingNullTerminator::KEY, 
 910 mike     1.20 	MissingNullTerminator::MSG))
 911               {
 912               }    
 913               
 914               MissingNullTerminator::~MissingNullTerminator()
 915               {
 916               }
 917               
 918               //==============================================================================
 919               //
 920               // MalformedLanguageHeader
 921               //
 922               //==============================================================================
 923               
 924               MalformedLanguageHeader::MalformedLanguageHeader(const String& error) : 
 925                   Exception(MessageLoaderParms(
 926                   MalformedLanguageHeader::KEY, 
 927                   MalformedLanguageHeader::MSG,
 928                   error)) 
 929               {
 930               }    
 931 mike     1.20 
 932               MalformedLanguageHeader::~MalformedLanguageHeader()
 933               {
 934               }
 935               
 936               //==============================================================================
 937               //
 938               // InvalidAcceptLanguageHeader
 939               //
 940               //==============================================================================
 941               
 942               InvalidAcceptLanguageHeader::InvalidAcceptLanguageHeader(const String& error) : 
 943                   Exception(MessageLoaderParms(
 944               	InvalidAcceptLanguageHeader::KEY, 
 945               	InvalidAcceptLanguageHeader::MSG,
 946               	error)) 
 947               {
 948               }    
 949               
 950               InvalidAcceptLanguageHeader::~InvalidAcceptLanguageHeader()
 951               {
 952 mike     1.20 }
 953               
 954               //==============================================================================
 955               //
 956               // InvalidContentLanguageHeader
 957               //
 958               //==============================================================================
 959               
 960               InvalidContentLanguageHeader::InvalidContentLanguageHeader(const String& error):
 961                   Exception(MessageLoaderParms(
 962               	InvalidContentLanguageHeader::KEY, 
 963               	InvalidContentLanguageHeader::MSG,
 964               	error)) 
 965               {
 966               }    
 967               
 968               InvalidContentLanguageHeader::~InvalidContentLanguageHeader()
 969               {
 970               }
 971               
 972               //==============================================================================
 973 mike     1.20 //
 974               // InvalidAuthHeader
 975               //
 976               //==============================================================================
 977               
 978               InvalidAuthHeader::InvalidAuthHeader() : 
 979                   Exception(MessageLoaderParms(
 980                   InvalidAuthHeader::KEY, 
 981                   InvalidAuthHeader::MSG)) 
 982               {
 983               }    
 984               
 985               InvalidAuthHeader::~InvalidAuthHeader()
 986               {
 987               }
 988               
 989               //==============================================================================
 990               //
 991               // UnauthorizedAccess
 992               //
 993               //==============================================================================
 994 mike     1.20 
 995               UnauthorizedAccess::UnauthorizedAccess() : 
 996                   Exception(MessageLoaderParms(
 997                   UnauthorizedAccess::KEY, 
 998                   UnauthorizedAccess::MSG)) 
 999               {
1000               }    
1001               
1002               UnauthorizedAccess::~UnauthorizedAccess()
1003               {
1004               }
1005               
1006               //==============================================================================
1007               //
1008               // IncompatibleTypesException
1009               //
1010               //==============================================================================
1011               
1012               IncompatibleTypesException::IncompatibleTypesException() : 
1013                   Exception("incompatible types")
1014               {
1015 mike     1.20 }
1016               
1017               IncompatibleTypesException::~IncompatibleTypesException()
1018               {
1019               }
1020               
1021               //==============================================================================
1022               //
1023               // InternalSystemError
1024               //
1025               //==============================================================================
1026               
1027               InternalSystemError::InternalSystemError() : 
1028                   Exception(InternalSystemError::MSG)
1029               {
1030               }    
1031               
1032               InternalSystemError::~InternalSystemError()
1033               {
1034               }
1035               
1036 kumpf    1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2