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

Diff for /pegasus/src/Pegasus/Common/InternalException.h between version 1.5 and 1.15

version 1.5, 2003/07/15 16:53:03 version 1.15, 2005/11/22 23:26:17
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 33 
Line 39 
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/Linkage.h> #include <Pegasus/Common/Linkage.h>
 #include <Pegasus/Common/Exception.h> #include <Pegasus/Common/Exception.h>
   #include <Pegasus/Common/PegasusAssert.h>
   
   
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 51 
Line 60 
         const String& message);         const String& message);
 }; };
  
 /** define PEGASUS_ASSERT assertion statement.  This statement tests the  
     condition defined by the parameters and if not True executes an  
   
     <pre>  
     throw AssertionFailureException  
     </pre>  
   
     defining the file, line and condition that was tested.  
 */  
 #ifdef NDEBUG  
 #define PEGASUS_ASSERT(COND)  
 #else  
 #define PEGASUS_ASSERT(COND) \  
     do \  
     { \  
         if (!(COND)) \  
         { \  
             throw AssertionFailureException(__FILE__, __LINE__, #COND); \  
         } \  
     } while (0)  
 #endif  
  
 /* Macro to Create the equivalent of an assert but without the /* Macro to Create the equivalent of an assert but without the
    termination.  This can be used as a temporary marker for asserts    termination.  This can be used as a temporary marker for asserts
Line 93 
Line 81 
     } while (0)     } while (0)
  
  
 // l10n TODO - finish the commented out constructors  
   
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
 class PEGASUS_COMMON_LINKAGE NullPointer : public Exception class PEGASUS_COMMON_LINKAGE NullPointer : public Exception
 { {
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     NullPointer() : Exception(MSG) { }      //NullPointer() : Exception(MSG) { }
  
 //  NullPointer() : Exception(MessageLoaderParms(KEY, MSG)) { }      NullPointer() : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 114 
Line 100 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     UndeclaredQualifier(const String& qualifierName)      //UndeclaredQualifier(const String& qualifierName)
         : Exception(MSG + qualifierName) { }          //: Exception(MSG + qualifierName) { }
  
 // NOTE - MSG needs to have a $0 arg for all the substitution cases // NOTE - MSG needs to have a $0 arg for all the substitution cases
 //  UndeclaredQualifier(const String& qualifierName)    UndeclaredQualifier(const String& qualifierName)
 //      : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }          : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 130 
Line 116 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
       //BadQualifierScope(const String& qualifierName, const String& scopeString)
           //: Exception(MSG + qualifierName + String(" scope=") + scopeString) { }
  
     BadQualifierScope(const String& qualifierName, const String& scopeString)  
         : Exception(MSG + qualifierName + String(" scope=") + scopeString) { }  
  
 /*  
         BadQualifierScope(const String& qualifierName, const String& scopeString)         BadQualifierScope(const String& qualifierName, const String& scopeString)
                                                  : Exception(MessageLoaderParms(KEY,                                                  : Exception(MessageLoaderParms(KEY,
                                                                                                                 MSG,                                                                                                                 MSG,
                                                                                                                 qualifierName,                                                                                                                 qualifierName,
                                                                                                                 scopeString)) { }                                                                                                                 scopeString)) { }
 */  
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 150 
Line 136 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     BadQualifierOverride(const String& qualifierName)  
         : Exception(MSG + qualifierName) { }  
  
 //  BadQualifierOverride(const String& qualifierName) //  BadQualifierOverride(const String& qualifierName)
 //  : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }          //: Exception(MSG + qualifierName) { }
   
       BadQualifierOverride(const String& qualifierName)
       : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE BadQualifierType : public Exception class PEGASUS_COMMON_LINKAGE BadQualifierType : public Exception
Line 164 
Line 150 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     BadQualifierType(const String& qualifierName)  
         : Exception(MSG + qualifierName) { }  
  
 //  BadQualifierType(const String& qualifierName) //  BadQualifierType(const String& qualifierName)
 //      : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }          //: Exception(MSG + qualifierName) { }
   
       BadQualifierType(const String& qualifierName)
           : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 179 
Line 165 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     ClassAlreadyResolved(const String& className)  
         : Exception(MSG + className) { }  
  
 //  ClassAlreadyResolved(const String& className) //  ClassAlreadyResolved(const String& className)
 //      : Exception(MessageLoaderParms(KEY, MSG, className)) { }          //: Exception(MSG + className) { }
   
       ClassAlreadyResolved(const String& className)
           : Exception(MessageLoaderParms(KEY, MSG, className)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 194 
Line 180 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     ClassNotResolved(const String& className)  
         : Exception(MSG + className) { }  
  
 //  ClassNotResolved(const String& className) //  ClassNotResolved(const String& className)
 //      : Exception(MessageLoaderParms(KEY, MSG, className)) { }          //: Exception(MSG + className) { }
   
       ClassNotResolved(const String& className)
           : Exception(MessageLoaderParms(KEY, MSG, className)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 209 
Line 195 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     InstanceAlreadyResolved()  
      : Exception(MSG) { }  
  
 //  InstanceAlreadyResolved() //  InstanceAlreadyResolved()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }      // : Exception(MSG) { }
   
       InstanceAlreadyResolved()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 224 
Line 210 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     InstantiatedAbstractClass(const String& className)  
      : Exception(MSG + className) { }  
  
 //  InstantiatedAbstractClass(const String& className) //  InstantiatedAbstractClass(const String& className)
 //      : Exception(MessageLoaderParms(KEY, MSG, className)) { }       //: Exception(MSG + className) { }
   
       InstantiatedAbstractClass(const String& className)
           : Exception(MessageLoaderParms(KEY, MSG, className)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 239 
Line 225 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     NoSuchProperty(const String& propertyName)  
         : Exception(MSG + propertyName) { }  
  
 //  NoSuchProperty(const String& propertyName) //  NoSuchProperty(const String& propertyName)
 //      : Exception(MessageLoaderParms(KEY, MSG, propertyName)) { }          //: Exception(MSG + propertyName) { }
   
       NoSuchProperty(const String& propertyName)
           : Exception(MessageLoaderParms(KEY, MSG, propertyName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 254 
Line 240 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     NoSuchFile(const String& fileName) : Exception(MSG + fileName) { }     // NoSuchFile(const String& fileName) : Exception(MSG + fileName) { }
  
 //  NoSuchFile(const String& fileName)      NoSuchFile(const String& fileName)
 //      : Exception(MessageLoaderParms(KEY, MSG, fileName)) { }          : Exception(MessageLoaderParms(KEY, MSG, fileName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 268 
Line 254 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     FileNotReadable(const String& fileName) : Exception(MSG + fileName) { }      //FileNotReadable(const String& fileName) : Exception(MSG + fileName) { }
  
 //  FileNotReadable(const String& fileName)      FileNotReadable(const String& fileName)
 //      : Exception(MessageLoaderParms(KEY, MSG, fileName)) { }          : Exception(MessageLoaderParms(KEY, MSG, fileName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 282 
Line 268 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     CannotRemoveDirectory(const String& path) : Exception(MSG + path) { }      //CannotRemoveDirectory(const String& path) : Exception(MSG + path) { }
  
 //  CannotRemoveDirectory(const String& path)      CannotRemoveDirectory(const String& path)
 //      : Exception(MessageLoaderParms(KEY, MSG, path)) { }          : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 296 
Line 282 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     CannotRemoveFile(const String& path) : Exception(MSG + path) { }      //CannotRemoveFile(const String& path) : Exception(MSG + path) { }
 //  CannotRemoveFile(const String& path)      CannotRemoveFile(const String& path)
 //      : Exception(MessageLoaderParms(KEY, MSG, path)) { }          : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 309 
Line 295 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     CannotRenameFile(const String& path) : Exception(MSG + path) { }      //CannotRenameFile(const String& path) : Exception(MSG + path) { }
 //  CannotRenameFile(const String& path)      CannotRenameFile(const String& path)
 //      : Exception(MessageLoaderParms(KEY, MSG, path)) { }          : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 322 
Line 308 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     NoSuchDirectory(const String& directoryName)  
         : Exception(MSG + directoryName) { }  
 //  NoSuchDirectory(const String& directoryName) //  NoSuchDirectory(const String& directoryName)
 //      : Exception(MessageLoaderParms(KEY, MSG, directoryName)) { }          //: Exception(MSG + directoryName) { }
       NoSuchDirectory(const String& directoryName)
           : Exception(MessageLoaderParms(KEY, MSG, directoryName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 336 
Line 322 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     CannotCreateDirectory(const String& path)  
         : Exception(MSG + path) { }  
 //  CannotCreateDirectory(const String& path) //  CannotCreateDirectory(const String& path)
 //      : Exception(MessageLoaderParms(KEY, MSG, path)) { }          //: Exception(MSG + path) { }
       CannotCreateDirectory(const String& path)
           : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 350 
Line 336 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     CannotOpenFile(const String& path)  
         : Exception(MSG + path) { }  
 //  CannotOpenFile(const String& path) //  CannotOpenFile(const String& path)
 //      : Exception(MessageLoaderParms(KEY, MSG, path)) { }          //: Exception(MSG + path) { }
       CannotOpenFile(const String& path)
           : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 364 
Line 350 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     NotImplemented(const String& method) : Exception(MSG + method) { }     // NotImplemented(const String& method) : Exception(MSG + method) { }
 //  NotImplemented(const String& method)      NotImplemented(const String& method)
 //      : Exception(MessageLoaderParms(KEY, MSG, method)) { }          : Exception(MessageLoaderParms(KEY, MSG, method)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE StackUnderflow : public Exception class PEGASUS_COMMON_LINKAGE StackUnderflow : public Exception
Line 376 
Line 362 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     StackUnderflow() : Exception(MSG) { }      //StackUnderflow() : Exception(MSG) { }
 //  StackUnderflow()      StackUnderflow()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE StackOverflow : public Exception class PEGASUS_COMMON_LINKAGE StackOverflow : public Exception
Line 388 
Line 374 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     StackOverflow() : Exception(MSG) { }      //StackOverflow() : Exception(MSG) { }
 //  StackOverflow()      StackOverflow()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE QueueUnderflow : public Exception class PEGASUS_COMMON_LINKAGE QueueUnderflow : public Exception
Line 400 
Line 386 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     QueueUnderflow() : Exception(MSG) { }      //QueueUnderflow() : Exception(MSG) { }
 //  QueueUnderflow()      QueueUnderflow()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE BadFormat : public Exception class PEGASUS_COMMON_LINKAGE BadFormat : public Exception
Line 412 
Line 398 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     BadFormat() : Exception(MSG) { }      //BadFormat() : Exception(MSG) { }
 //  BadFormat()      BadFormat()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE BadlyFormedCGIQueryString : public Exception class PEGASUS_COMMON_LINKAGE BadlyFormedCGIQueryString : public Exception
Line 424 
Line 410 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     BadlyFormedCGIQueryString() : Exception(MSG) { }      //BadlyFormedCGIQueryString() : Exception(MSG) { }
 //  BadlyFormedCGIQueryString()      BadlyFormedCGIQueryString()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE DynamicLoadFailed : public Exception class PEGASUS_COMMON_LINKAGE DynamicLoadFailed : public Exception
Line 436 
Line 422 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
   
     DynamicLoadFailed(const String& libraryName)  
         : Exception(MSG + libraryName) { }  
  
 //  DynamicLoadFailed(const String& libraryName) //  DynamicLoadFailed(const String& libraryName)
 //      : Exception(MessageLoaderParms(KEY, MSG, libraryName)) { }          //: Exception(MSG + libraryName) { }
   
       DynamicLoadFailed(const String& libraryName)
           : Exception(MessageLoaderParms(KEY, MSG, libraryName)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE DynamicLookupFailed : public Exception class PEGASUS_COMMON_LINKAGE DynamicLookupFailed : public Exception
Line 450 
Line 436 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     DynamicLookupFailed(const String& symbolName)  
         : Exception(MSG + symbolName) { }  
 //  DynamicLookupFailed(const String& symbolName) //  DynamicLookupFailed(const String& symbolName)
 //      : Exception(MessageLoaderParms(KEY, MSG, symbolName)) { }          //: Exception(MSG + symbolName) { }
       DynamicLookupFailed(const String& symbolName)
           : Exception(MessageLoaderParms(KEY, MSG, symbolName)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE CannotOpenDirectory : public Exception class PEGASUS_COMMON_LINKAGE CannotOpenDirectory : public Exception
Line 463 
Line 449 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     CannotOpenDirectory(const String& path) : Exception(MSG + path) { }      //CannotOpenDirectory(const String& path) : Exception(MSG + path) { }
 //  CannotOpenDirectory(const String& path)      CannotOpenDirectory(const String& path)
 //      : Exception(MessageLoaderParms(KEY, MSG, path)) { }          : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE ParseError : public Exception class PEGASUS_COMMON_LINKAGE ParseError : public Exception
Line 475 
Line 461 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     ParseError(const String& message) : Exception(MSG + message) { }      //ParseError(const String& message) : Exception(MSG + message) { }
 //  ParseError(const String& message)      ParseError(const String& message)
 //      : Exception(MessageLoaderParms(KEY, MSG, message)) { }          : Exception(MessageLoaderParms(KEY, MSG, message)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE MissingNullTerminator : public Exception class PEGASUS_COMMON_LINKAGE MissingNullTerminator : public Exception
Line 487 
Line 473 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     MissingNullTerminator() : Exception(MSG) { }      //MissingNullTerminator() : Exception(MSG) { }
 //  MissingNullTerminator()      MissingNullTerminator()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 //l10n start //l10n start
Line 501 
Line 487 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     MalformedLanguageHeader(const String& error) : Exception(MSG + error) { }      //MalformedLanguageHeader(const String& error) : Exception(MSG + error) { }
 //  MalformedLanguageHeader(const String& error)      MalformedLanguageHeader(const String& error)
 //      : Exception(MessageLoaderParms(KEY, MSG, error)) { }          : Exception(MessageLoaderParms(KEY, MSG, error)) { }
 }; };
  
  
Line 514 
Line 500 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     InvalidAcceptLanguageHeader(const String& error) : Exception(MSG + error) { }      //InvalidAcceptLanguageHeader(const String& error) : Exception(MSG + error) { }
 //  InvalidAcceptLanguageHeader(const String& error)      InvalidAcceptLanguageHeader(const String& error)
 //      : Exception(MessageLoaderParms(KEY, MSG, error)) { }          : Exception(MessageLoaderParms(KEY, MSG, error)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE InvalidContentLanguageHeader: public Exception class PEGASUS_COMMON_LINKAGE InvalidContentLanguageHeader: public Exception
Line 526 
Line 512 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     InvalidContentLanguageHeader(const String& error) : Exception(MSG + error) { }      //InvalidContentLanguageHeader(const String& error) : Exception(MSG + error) { }
 //  InvalidContentLanguageHeader(const String& error)      InvalidContentLanguageHeader(const String& error)
 //      : Exception(MessageLoaderParms(KEY, MSG, error)) { }          : Exception(MessageLoaderParms(KEY, MSG, error)) { }
 }; };
  
 //l10n end //l10n end
Line 540 
Line 526 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     InvalidAuthHeader() : Exception(MSG) { }      //InvalidAuthHeader() : Exception(MSG) { }
 //  InvalidAuthHeader()      InvalidAuthHeader()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE UnauthorizedAccess: public Exception class PEGASUS_COMMON_LINKAGE UnauthorizedAccess: public Exception
Line 552 
Line 538 
 public: public:
  
     static const char MSG[];     static const char MSG[];
 //  static const char KEY[];      static const char KEY[];
  
     UnauthorizedAccess() : Exception(MSG) { }      //UnauthorizedAccess() : Exception(MSG) { }
 //  UnauthorizedAccess()      UnauthorizedAccess()
 //      : Exception(MessageLoaderParms(KEY, MSG)) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE IncompatibleTypesException : public Exception class PEGASUS_COMMON_LINKAGE IncompatibleTypesException : public Exception
Line 565 
Line 551 
     IncompatibleTypesException();     IncompatibleTypesException();
 }; };
  
   class PEGASUS_COMMON_LINKAGE InternalSystemError : public Exception
   {
   public:
   
       static const char MSG[];
   
       InternalSystemError()
           : Exception(MSG) { }
   };
   
  
 /** The CIMException defines the CIM exceptions that are formally defined in /** The CIMException defines the CIM exceptions that are formally defined in
     the CIM Operations over HTTP specification.  TraceableCIMException allows     the CIM Operations over HTTP specification.  TraceableCIMException allows
Line 577 
Line 573 
     TraceableCIMException(     TraceableCIMException(
         CIMStatusCode code,         CIMStatusCode code,
         const String& message,         const String& message,
         const char* file,          const String& file,
           Uint32 line);
   
           //l10n
           TraceableCIMException(
           CIMStatusCode code,
           MessageLoaderParms parms,
           const String& file,
         Uint32 line);         Uint32 line);
  
 // l10n // l10n
Line 585 
Line 588 
         const ContentLanguages& langs,         const ContentLanguages& langs,
     CIMStatusCode code,     CIMStatusCode code,
     const String& message,     const String& message,
     const char* file,      const String& file,
     Uint32 line);     Uint32 line);
  
     TraceableCIMException(const CIMException & cimException);     TraceableCIMException(const CIMException & cimException);
Line 593 
Line 596 
     String getDescription() const;     String getDescription() const;
  
     String getTraceDescription() const;     String getTraceDescription() const;
   
       String getCIMMessage() const;
       void setCIMMessage(const String& cimMessage);
   
       String getFile() const;
       Uint32 getLine() const;
       const ContentLanguages& getContentLanguages() const;
 }; };
  
 #define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \ #define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \
     TraceableCIMException(CODE, EXTRA_MESSAGE, __FILE__, __LINE__)      TraceableCIMException(CODE, EXTRA_MESSAGE, String(__FILE__), __LINE__)
  
 // l10n // l10n
 #define PEGASUS_CIM_EXCEPTION_LANG(LANGS, CODE, EXTRA_MESSAGE) \ #define PEGASUS_CIM_EXCEPTION_LANG(LANGS, CODE, EXTRA_MESSAGE) \
     TraceableCIMException(LANGS, CODE, EXTRA_MESSAGE, __FILE__, __LINE__)      TraceableCIMException( \
           LANGS, CODE, EXTRA_MESSAGE, String(__FILE__), __LINE__)
   
   //l10n
   #define PEGASUS_CIM_EXCEPTION_L(CODE, MSG_PARMS) \
       TraceableCIMException(CODE, MSG_PARMS, String(__FILE__), __LINE__)
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.5  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2