(file) Return to StressTestControllerException.h CVS log (file) (dir) Up to [Pegasus] / pegasus / test / StressTestController

  1 martin 1.3 //%LICENSE////////////////////////////////////////////////////////////////
  2            // 
  3            // Licensed to The Open Group (TOG) under one or more contributor license
  4            // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5            // this work for additional information regarding copyright ownership.
  6            // Each contributor licenses this file to you under the OpenPegasus Open
  7            // Source License; you may not use this file except in compliance with the
  8            // License.
  9            // 
 10            // Permission is hereby granted, free of charge, to any person obtaining a
 11            // copy of this software and associated documentation files (the "Software"),
 12            // to deal in the Software without restriction, including without limitation
 13            // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14            // and/or sell copies of the Software, and to permit persons to whom the
 15            // Software is furnished to do so, subject to the following conditions:
 16            // 
 17            // The above copyright notice and this permission notice shall be included
 18            // in all copies or substantial portions of the Software.
 19            // 
 20            // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21            // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 22 martin 1.3 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23            // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24            // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25            // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26            // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27            // 
 28            //////////////////////////////////////////////////////////////////////////
 29 j.alex 1.2 //
 30            // Author: John Alex, IBM         (johnalex@us.ibm.com)
 31            //
 32            //%/////////////////////////////////////////////////////////////////////////////
 33            
 34            #ifndef Pegasus_StressTestControllerException_h
 35            #define Pegasus_StressTestControllerException_h
 36            
 37            #include <Clients/cliutils/CommandException.h>
 38            
 39            
 40            PEGASUS_NAMESPACE_BEGIN
 41            
 42            /** 
 43              
 44                StressTestControllerException signals that an exception has occurred in 
 45                executing the StressTestController command.  
 46              
 47              
 48             */
 49            class StressTestControllerException : public CommandException 
 50 j.alex 1.2 {
 51            public:
 52                /**
 53                  
 54                    Constructs an StressTestControllerException with a message corresponding
 55                    to the specified exception ID.
 56                  
 57                    @param  ID                the integer exception identifier
 58                  
 59                 */
 60                StressTestControllerException (Uint32 ID);
 61            
 62            
 63                /**
 64                  
 65                    Constructs an StressTestControllerException with the specified message.
 66                  
 67                    @param  exceptionMessage  a string containing the exception message
 68                  
 69                 */
 70                StressTestControllerException (const String& exceptionMessage);
 71 j.alex 1.2 
 72                //
 73                //  Exception identifiers
 74                //
 75                //  These are used to index into the messageStrings array to retrieve the 
 76                //  appropriate exception message string.  When a new identifier is added, 
 77                //  the messageStrings array and MAX_ID must be updated appropriately.
 78                //
 79                
 80                /**
 81                  
 82                    Default exception identifier.  This identifier is used if the specified
 83                    identifier is out of range.  This identifier corresponds to a default
 84                    (generic) message in the array of exception message strings.
 85                  
 86                 */
 87                static const Uint32 DEFAULT_ID;
 88                
 89                /**
 90                  
 91                    Minimum valid exception identifier.
 92 j.alex 1.2       
 93                 */
 94                static const Uint32 MIN_ID;
 95            
 96                /**
 97            
 98                    Exception identifier indicating "Syntax Error" with client option.
 99            
100                */
101            
102                static const Uint32 INVALID_OPTION;
103            
104                /**
105            
106                    Exception identifier indicating "Syntax Error" with client option 
107                    operator.
108            
109                */
110                static const Uint32 INVALID_OPERATOR;
111            
112                /**
113 j.alex 1.2 
114                    Exception identifier indicating "Missing closing square brace".
115            
116                */
117                static const Uint32 MISSING_BRACE;
118            
119                /**
120            
121                    Exception identifier indicating "Missing value for client option".
122            
123                */
124                static const Uint32 MISSING_VALUE;
125            
126            
127                static const Uint32 MAX_ID;
128            
129            private:
130                /**
131                  
132                    Exception message strings.  The exception identifier is used as an
133                    index into this array to retrieve the appropriate exception message 
134 j.alex 1.2         string.  When a new identifier is added, this array must be updated
135                    appropriately.
136                  
137                 */
138                static const char*  _messageStrings [];
139            };
140            
141            PEGASUS_NAMESPACE_END
142            
143            #endif  /* Pegasus_StressTestControllerException_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2