(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.1 and 1.6

version 1.1, 2002/08/16 01:28:06 version 1.6, 2003/07/18 13:26:20
Line 93 
Line 93 
     } 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[];
   
       //NullPointer() : Exception(MSG) { }
  
     NullPointer() : Exception(MSG) { }      NullPointer() : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 109 
Line 114 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
       //UndeclaredQualifier(const String& qualifierName)
           //: Exception(MSG + qualifierName) { }
   
   // NOTE - MSG needs to have a $0 arg for all the substitution cases
     UndeclaredQualifier(const String& qualifierName)     UndeclaredQualifier(const String& qualifierName)
         : Exception(MSG + qualifierName) { }          : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 120 
Line 130 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //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(MSG + qualifierName + String(" scope=") + scopeString) { }                                                   : Exception(MessageLoaderParms(KEY,
                                                                                                                   MSG,
                                                                                                                   qualifierName,
                                                                                                                   scopeString)) { }
   
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 131 
Line 150 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //BadQualifierOverride(const String& qualifierName)
           //: Exception(MSG + qualifierName) { }
  
     BadQualifierOverride(const String& qualifierName)     BadQualifierOverride(const String& qualifierName)
         : Exception(MSG + qualifierName) { }      : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE BadQualifierType : public Exception class PEGASUS_COMMON_LINKAGE BadQualifierType : public Exception
Line 141 
Line 164 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     BadQualifierType(const String& qualifierName)      //BadQualifierType(const String& qualifierName)
         : Exception(MSG + qualifierName) { }          //: Exception(MSG + qualifierName) { }
 };  
   
 // ATTN: P3  KS documentation Required  
 class PEGASUS_COMMON_LINKAGE NullType : public Exception  
 {  
 public:  
   
     static const char MSG[];  
  
     NullType() : Exception(MSG) { }      BadQualifierType(const String& qualifierName)
           : Exception(MessageLoaderParms(KEY, MSG, qualifierName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 162 
Line 179 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //ClassAlreadyResolved(const String& className)
           //: Exception(MSG + className) { }
  
     ClassAlreadyResolved(const String& className)     ClassAlreadyResolved(const String& className)
         : Exception(MSG + className) { }          : Exception(MessageLoaderParms(KEY, MSG, className)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 173 
Line 194 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //ClassNotResolved(const String& className)
           //: Exception(MSG + className) { }
  
     ClassNotResolved(const String& className)     ClassNotResolved(const String& className)
         : Exception(MSG + className) { }          : Exception(MessageLoaderParms(KEY, MSG, className)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 184 
Line 209 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //InstanceAlreadyResolved()
       // : Exception(MSG) { }
  
     InstanceAlreadyResolved()     InstanceAlreadyResolved()
      : Exception(MSG) { }          : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 195 
Line 224 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //InstantiatedAbstractClass(const String& className)
        //: Exception(MSG + className) { }
  
     InstantiatedAbstractClass(const String& className)     InstantiatedAbstractClass(const String& className)
      : Exception(MSG + className) { }          : Exception(MessageLoaderParms(KEY, MSG, className)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 206 
Line 239 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //NoSuchProperty(const String& propertyName)
           //: Exception(MSG + propertyName) { }
  
     NoSuchProperty(const String& propertyName)     NoSuchProperty(const String& propertyName)
         : Exception(MSG + propertyName) { }          : Exception(MessageLoaderParms(KEY, MSG, propertyName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 217 
Line 254 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
      // NoSuchFile(const String& fileName) : Exception(MSG + fileName) { }
  
     NoSuchFile(const String& fileName) : Exception(MSG + fileName) { }      NoSuchFile(const String& fileName)
           : Exception(MessageLoaderParms(KEY, MSG, fileName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 227 
Line 268 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     FileNotReadable(const String& fileName) : Exception(MSG + fileName) { }      //FileNotReadable(const String& fileName) : Exception(MSG + fileName) { }
   
       FileNotReadable(const String& fileName)
           : Exception(MessageLoaderParms(KEY, MSG, fileName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 237 
Line 282 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //CannotRemoveDirectory(const String& path) : Exception(MSG + path) { }
  
     CannotRemoveDirectory(const String& path) : Exception(MSG + path) { }      CannotRemoveDirectory(const String& path)
           : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 247 
Line 296 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     CannotRemoveFile(const String& path) : Exception(MSG + path) { }      //CannotRemoveFile(const String& path) : Exception(MSG + path) { }
       CannotRemoveFile(const String& path)
           : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 257 
Line 309 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     CannotRenameFile(const String& path) : Exception(MSG + path) { }      //CannotRenameFile(const String& path) : Exception(MSG + path) { }
       CannotRenameFile(const String& path)
           : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 267 
Line 322 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
       //NoSuchDirectory(const String& directoryName)
           //: Exception(MSG + directoryName) { }
     NoSuchDirectory(const String& directoryName)     NoSuchDirectory(const String& directoryName)
         : Exception(MSG + directoryName) { }          : Exception(MessageLoaderParms(KEY, MSG, directoryName)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 278 
Line 336 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
       //CannotCreateDirectory(const String& path)
           //: Exception(MSG + path) { }
     CannotCreateDirectory(const String& path)     CannotCreateDirectory(const String& path)
         : Exception(MSG + path) { }          : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 289 
Line 350 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
       //CannotOpenFile(const String& path)
           //: Exception(MSG + path) { }
     CannotOpenFile(const String& path)     CannotOpenFile(const String& path)
         : Exception(MSG + path) { }          : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 // ATTN: P3  KS documentation Required // ATTN: P3  KS documentation Required
Line 300 
Line 364 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     NotImplemented(const String& method) : Exception(MSG + method) { }     // NotImplemented(const String& method) : Exception(MSG + method) { }
       NotImplemented(const String& method)
           : Exception(MessageLoaderParms(KEY, MSG, method)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE StackUnderflow : public Exception class PEGASUS_COMMON_LINKAGE StackUnderflow : public Exception
Line 309 
Line 376 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     StackUnderflow() : Exception(MSG) { }      //StackUnderflow() : Exception(MSG) { }
       StackUnderflow()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE StackOverflow : public Exception class PEGASUS_COMMON_LINKAGE StackOverflow : public Exception
Line 318 
Line 388 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     StackOverflow() : Exception(MSG) { }      //StackOverflow() : Exception(MSG) { }
       StackOverflow()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE QueueUnderflow : public Exception class PEGASUS_COMMON_LINKAGE QueueUnderflow : public Exception
Line 327 
Line 400 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     QueueUnderflow() : Exception(MSG) { }      //QueueUnderflow() : Exception(MSG) { }
       QueueUnderflow()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE BadFormat : public Exception class PEGASUS_COMMON_LINKAGE BadFormat : public Exception
Line 336 
Line 412 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     BadFormat() : Exception(MSG) { }      //BadFormat() : Exception(MSG) { }
       BadFormat()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE BadlyFormedCGIQueryString : public Exception class PEGASUS_COMMON_LINKAGE BadlyFormedCGIQueryString : public Exception
Line 345 
Line 424 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     BadlyFormedCGIQueryString() : Exception(MSG) { }      //BadlyFormedCGIQueryString() : Exception(MSG) { }
       BadlyFormedCGIQueryString()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE DynamicLoadFailed : public Exception class PEGASUS_COMMON_LINKAGE DynamicLoadFailed : public Exception
Line 354 
Line 436 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
   
       //DynamicLoadFailed(const String& libraryName)
           //: Exception(MSG + libraryName) { }
  
     DynamicLoadFailed(const String& libraryName)     DynamicLoadFailed(const String& libraryName)
         : Exception(MSG + libraryName) { }          : Exception(MessageLoaderParms(KEY, MSG, libraryName)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE DynamicLookupFailed : public Exception class PEGASUS_COMMON_LINKAGE DynamicLookupFailed : public Exception
Line 364 
Line 450 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
       //DynamicLookupFailed(const String& symbolName)
           //: Exception(MSG + symbolName) { }
     DynamicLookupFailed(const String& symbolName)     DynamicLookupFailed(const String& symbolName)
         : Exception(MSG + symbolName) { }          : Exception(MessageLoaderParms(KEY, MSG, symbolName)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE CannotOpenDirectory : public Exception class PEGASUS_COMMON_LINKAGE CannotOpenDirectory : public Exception
Line 374 
Line 463 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     CannotOpenDirectory(const String& path) : Exception(MSG + path) { }      //CannotOpenDirectory(const String& path) : Exception(MSG + path) { }
       CannotOpenDirectory(const String& path)
           : Exception(MessageLoaderParms(KEY, MSG, path)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE ParseError : public Exception class PEGASUS_COMMON_LINKAGE ParseError : public Exception
Line 383 
Line 475 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     ParseError(const String& message) : Exception(MSG + message) { }      //ParseError(const String& message) : Exception(MSG + message) { }
       ParseError(const String& message)
           : Exception(MessageLoaderParms(KEY, MSG, message)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE MissingNullTerminator : public Exception class PEGASUS_COMMON_LINKAGE MissingNullTerminator : public Exception
Line 392 
Line 487 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     MissingNullTerminator() : Exception(MSG) { }      //MissingNullTerminator() : Exception(MSG) { }
       MissingNullTerminator()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
   //l10n start
   
   class PEGASUS_COMMON_LINKAGE MalformedLanguageHeader: public Exception
   {
   public:
   
       static const char MSG[];
       static const char KEY[];
   
       //MalformedLanguageHeader(const String& error) : Exception(MSG + error) { }
       MalformedLanguageHeader(const String& error)
           : Exception(MessageLoaderParms(KEY, MSG, error)) { }
   };
   
   
   class PEGASUS_COMMON_LINKAGE InvalidAcceptLanguageHeader: public Exception
   {
   public:
   
       static const char MSG[];
       static const char KEY[];
   
       //InvalidAcceptLanguageHeader(const String& error) : Exception(MSG + error) { }
       InvalidAcceptLanguageHeader(const String& error)
           : Exception(MessageLoaderParms(KEY, MSG, error)) { }
   };
   
   class PEGASUS_COMMON_LINKAGE InvalidContentLanguageHeader: public Exception
   {
   public:
   
       static const char MSG[];
       static const char KEY[];
   
       //InvalidContentLanguageHeader(const String& error) : Exception(MSG + error) { }
       InvalidContentLanguageHeader(const String& error)
           : Exception(MessageLoaderParms(KEY, MSG, error)) { }
   };
   
   //l10n end
   
 class PEGASUS_COMMON_LINKAGE InvalidAuthHeader: public Exception class PEGASUS_COMMON_LINKAGE InvalidAuthHeader: public Exception
 { {
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     InvalidAuthHeader() : Exception(MSG) { }      //InvalidAuthHeader() : Exception(MSG) { }
       InvalidAuthHeader()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
 }; };
  
 class PEGASUS_COMMON_LINKAGE UnauthorizedAccess: public Exception class PEGASUS_COMMON_LINKAGE UnauthorizedAccess: public Exception
Line 410 
Line 552 
 public: public:
  
     static const char MSG[];     static const char MSG[];
       static const char KEY[];
  
     UnauthorizedAccess() : Exception(MSG) { }      //UnauthorizedAccess() : Exception(MSG) { }
       UnauthorizedAccess()
           : Exception(MessageLoaderParms(KEY, MSG)) { }
   };
   
   class PEGASUS_COMMON_LINKAGE IncompatibleTypesException : public Exception
   {
   public:
       IncompatibleTypesException();
 }; };
  
 #if 0  
 #define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \  
     CIMException(CODE, EXTRA_MESSAGE, __FILE__, __LINE__)  
  
 /** 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.  InternalCIMException allows      the CIM Operations over HTTP specification.  TraceableCIMException allows
     file name and line number information to be added for diagnostic purposes.     file name and line number information to be added for diagnostic purposes.
 */ */
 class PEGASUS_COMMON_LINKAGE InternalCIMException : public CIMException  class PEGASUS_COMMON_LINKAGE TraceableCIMException : public CIMException
 { {
 public: public:
  
     InternalCIMException(      TraceableCIMException(
         CIMStatusCode code = CIM_ERR_SUCCESS,          CIMStatusCode code,
         const String& message = String::EMPTY,          const String& message,
         const char* file = "",          const char* file,
         Uint32 line = 0);          Uint32 line);
  
     String getTraceDescription() const;  // l10n
           TraceableCIMException(
           const ContentLanguages& langs,
       CIMStatusCode code,
       const String& message,
       const char* file,
       Uint32 line);
   
       TraceableCIMException(const CIMException & cimException);
  
 private:      String getDescription() const;
     const char*    _file;  
     Uint32         _line;      String getTraceDescription() const;
 }; };
 #endif  
   #define PEGASUS_CIM_EXCEPTION(CODE, EXTRA_MESSAGE) \
       TraceableCIMException(CODE, EXTRA_MESSAGE, __FILE__, __LINE__)
   
   // l10n
   #define PEGASUS_CIM_EXCEPTION_LANG(LANGS, CODE, EXTRA_MESSAGE) \
       TraceableCIMException(LANGS, CODE, EXTRA_MESSAGE, __FILE__, __LINE__)
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2