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

Diff for /pegasus/src/Pegasus/Common/Exception.h between version 1.22 and 1.22.2.13

version 1.22, 2001/07/10 22:31:13 version 1.22.2.13, 2001/12/06 19:38:22
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%////////////-*-c++-*-//////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM
 // //
Line 22 
Line 22 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
   // Modified By: Nag Boranna (nagaraja_boranna@hp.com)
   //
 // Modified By: // Modified By:
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
Line 344 
Line 346 
  
     NoSuchFile(const String& fileName) : Exception(MSG + fileName) { }     NoSuchFile(const String& fileName) : Exception(MSG + fileName) { }
 }; };
   
   /// ATTN:
   class PEGASUS_COMMON_LINKAGE FileNotReadable : public Exception
   {
   public:
   
       static const char MSG[];
   
       FileNotReadable(const String& fileName) : Exception(MSG + fileName) { }
   };
   
 class PEGASUS_COMMON_LINKAGE CannotBindToAddress : public Exception class PEGASUS_COMMON_LINKAGE CannotBindToAddress : public Exception
 { {
 public: public:
Line 483 
Line 496 
     StackUnderflow() : Exception(MSG) { }     StackUnderflow() : Exception(MSG) { }
 }; };
  
   class PEGASUS_COMMON_LINKAGE StackOverflow : public Exception
   {
   public:
   
       static const char MSG[];
   
       StackOverflow() : Exception(MSG) { }
   };
   
 class PEGASUS_COMMON_LINKAGE QueueUnderflow : public Exception class PEGASUS_COMMON_LINKAGE QueueUnderflow : public Exception
 { {
 public: public:
Line 577 
Line 599 
     CorruptFile(const String& path) : Exception(MSG + path) { }     CorruptFile(const String& path) : Exception(MSG + path) { }
 }; };
  
   class PEGASUS_COMMON_LINKAGE BindFailed : public Exception
   {
   public:
   
       static const char MSG[];
   
       BindFailed(const String& message) : Exception(MSG + message) { }
   };
   
   class PEGASUS_COMMON_LINKAGE InvalidLocator : public Exception
   {
   public:
   
       static const char MSG[];
   
       InvalidLocator(const String& locator) : Exception(MSG + locator) { }
   };
   
   class PEGASUS_COMMON_LINKAGE CannotCreateSocket : public Exception
   {
   public:
   
       static const char MSG[];
   
       CannotCreateSocket() : Exception(MSG) { }
   };
   
   class PEGASUS_COMMON_LINKAGE CannotConnect : public Exception
   {
   public:
   
       static const char MSG[];
   
       CannotConnect(const String& locator) : Exception(MSG + locator) { }
   };
   
   class PEGASUS_COMMON_LINKAGE UnexpectedFailure : public Exception
   {
   public:
   
       static const char MSG[];
   
       UnexpectedFailure() : Exception(MSG) { }
   };
   
   class PEGASUS_COMMON_LINKAGE FailedToConnect : public Exception
   {
   public:
   
       static const char MSG[];
   
       FailedToConnect() : Exception(MSG) { }
   };
   
   class PEGASUS_COMMON_LINKAGE AlreadyConnected: public Exception
   {
   public:
   
       static const char MSG[];
   
       AlreadyConnected() : Exception(MSG) { }
   };
   
   class PEGASUS_COMMON_LINKAGE NotConnected: public Exception
   {
   public:
   
       static const char MSG[];
   
       NotConnected() : Exception(MSG) { }
   };
   
   class PEGASUS_COMMON_LINKAGE TimedOut: public Exception
   {
   public:
   
       static const char MSG[];
   
       TimedOut() : Exception(MSG) { }
   };
   
   // ATTN: this exception should derive from the Exception class to define
   // the standard message interface. Try blocks which catch the class
   // Exception will miss this one.
   
   class PEGASUS_COMMON_LINKAGE BufferTooSmall
   {
   public:
   
       BufferTooSmall(Uint32 needed)
       {
           required_size = needed;
       }
   
       Uint32 required_size;
   
   private:
   
       BufferTooSmall(void);
   };
   
   class PEGASUS_COMMON_LINKAGE ParseError : public Exception
   {
   public:
   
       static const char MSG[];
   
       ParseError(const String& message) : Exception(MSG + message) { }
   };
   
   class PEGASUS_COMMON_LINKAGE MissingNullTerminator : public Exception
   {
   public:
   
       static const char MSG[];
   
       MissingNullTerminator() : Exception(MSG) { }
   };
   
   class PEGASUS_COMMON_LINKAGE SSL_Exception: public Exception
   {
   public:
   
       static const char MSG[];
   
       SSL_Exception(const String& message)
          : Exception(MSG + message) { }
   };
   
 PEGASUS_COMMON_LINKAGE void ThrowUnitializedHandle(); PEGASUS_COMMON_LINKAGE void ThrowUnitializedHandle();
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.22.2.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2