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

  1 martin 1.8 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.9 //
  3 martin 1.8 // 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 martin 1.9 //
 10 martin 1.8 // 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 martin 1.9 //
 17 martin 1.8 // The above copyright notice and this permission notice shall be included
 18            // in all copies or substantial portions of the Software.
 19 martin 1.9 //
 20 martin 1.8 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.9 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.8 // 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 martin 1.9 //
 28 martin 1.8 //////////////////////////////////////////////////////////////////////////
 29 kumpf  1.1 //
 30            //%/////////////////////////////////////////////////////////////////////////////
 31            
 32            #include <Pegasus/Common/Config.h>
 33            #include "ProviderException.h"
 34            
 35            PEGASUS_NAMESPACE_BEGIN
 36            
 37 kumpf  1.7 CIMOperationFailedException::CIMOperationFailedException(const String& message)
 38 kumpf  1.1     : CIMException(CIM_ERR_FAILED, message)
 39            {
 40            }
 41            
 42 kumpf  1.7 CIMOperationFailedException::CIMOperationFailedException(
 43                const MessageLoaderParms& parms)
 44 chuck  1.2     : CIMException(CIM_ERR_FAILED, parms)
 45            {
 46            }
 47            
 48 kumpf  1.1 CIMOperationFailedException::CIMOperationFailedException(
 49                const CIMStatusCode code,
 50 kumpf  1.7     const String& message)
 51 kumpf  1.1     : CIMException(code, message)
 52            {
 53            }
 54            
 55 chuck  1.2 CIMOperationFailedException::CIMOperationFailedException(
 56                const CIMStatusCode code,
 57 kumpf  1.7     const MessageLoaderParms& parms)
 58 chuck  1.2     : CIMException(code, parms)
 59            {
 60            }
 61 kumpf  1.1 
 62 kumpf  1.7 CIMAccessDeniedException::CIMAccessDeniedException(const String& message)
 63 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_ACCESS_DENIED, message)
 64            {
 65            }
 66            
 67 kumpf  1.7 CIMAccessDeniedException::CIMAccessDeniedException(
 68                const MessageLoaderParms& parms)
 69 chuck  1.2     : CIMOperationFailedException(CIM_ERR_ACCESS_DENIED, parms)
 70            {
 71            }
 72            
 73 kumpf  1.1 CIMInvalidParameterException::CIMInvalidParameterException(
 74 kumpf  1.7     const String& message)
 75 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_INVALID_PARAMETER,  message)
 76            {
 77            }
 78            
 79 chuck  1.2 CIMInvalidParameterException::CIMInvalidParameterException(
 80 kumpf  1.7     const MessageLoaderParms& parms)
 81 chuck  1.2     : CIMOperationFailedException(CIM_ERR_INVALID_PARAMETER,  parms)
 82            {
 83            }
 84            
 85 kumpf  1.1 #if 0
 86 kumpf  1.7 CIMInvalidClassException::CIMInvalidClassException(const String& message)
 87 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_INVALID_CLASS,  message)
 88            {
 89            }
 90 chuck  1.2 
 91 kumpf  1.7 CIMInvalidClassException::CIMInvalidClassException(
 92                const MessageLoaderParms& parms)
 93 chuck  1.2     : CIMOperationFailedException(CIM_ERR_INVALID_CLASS,  parms)
 94            {
 95            }
 96 kumpf  1.1 #endif
 97            
 98 kumpf  1.7 CIMObjectNotFoundException::CIMObjectNotFoundException(const String& message)
 99 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_NOT_FOUND, message)
100            {
101            }
102            
103 kumpf  1.7 CIMObjectNotFoundException::CIMObjectNotFoundException(
104                const MessageLoaderParms& parms)
105 chuck  1.2     : CIMOperationFailedException(CIM_ERR_NOT_FOUND, parms)
106            {
107            }
108            
109 kumpf  1.7 CIMNotSupportedException::CIMNotSupportedException(const String& message)
110 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_NOT_SUPPORTED, message)
111            {
112            }
113            
114 kumpf  1.7 CIMNotSupportedException::CIMNotSupportedException(
115                const MessageLoaderParms& parms)
116 chuck  1.2     : CIMOperationFailedException(CIM_ERR_NOT_SUPPORTED, parms)
117            {
118            }
119            
120 kumpf  1.1 CIMObjectAlreadyExistsException::CIMObjectAlreadyExistsException(
121 kumpf  1.7     const String& message)
122 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_ALREADY_EXISTS, message)
123            {
124            }
125            
126 chuck  1.2 CIMObjectAlreadyExistsException::CIMObjectAlreadyExistsException(
127 kumpf  1.7     const MessageLoaderParms& parms)
128 chuck  1.2     : CIMOperationFailedException(CIM_ERR_ALREADY_EXISTS, parms)
129            {
130            }
131            
132 kumpf  1.7 CIMPropertyNotFoundException::CIMPropertyNotFoundException(
133                const String& message)
134 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_NO_SUCH_PROPERTY, message)
135            {
136            }
137            
138 kumpf  1.7 CIMPropertyNotFoundException::CIMPropertyNotFoundException(
139                const MessageLoaderParms& parms)
140 chuck  1.2     : CIMOperationFailedException(CIM_ERR_NO_SUCH_PROPERTY, parms)
141            {
142            }
143            
144 kumpf  1.1 #if 0
145            // Query operations are not yet supported in Pegasus
146 kumpf  1.7 CIMInvalidQueryException::CIMInvalidQueryException(const String& message)
147 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_INVALID_QUERY, message)
148            {
149            }
150 chuck  1.2 
151 kumpf  1.7 CIMInvalidQueryException::CIMInvalidQueryException(
152                const MessageLoaderParms& parms)
153 chuck  1.2     : CIMOperationFailedException(CIM_ERR_INVALID_QUERY, parms)
154            {
155            }
156 kumpf  1.1 #endif
157            
158 kumpf  1.7 CIMMethodNotFoundException::CIMMethodNotFoundException(const String& message)
159 kumpf  1.1     : CIMOperationFailedException(CIM_ERR_METHOD_NOT_FOUND, message)
160 chuck  1.2 {
161            }
162            
163 kumpf  1.7 CIMMethodNotFoundException::CIMMethodNotFoundException(
164                const MessageLoaderParms& parms)
165 chuck  1.2     : CIMOperationFailedException(CIM_ERR_METHOD_NOT_FOUND, parms)
166 kumpf  1.1 {
167            }
168            
169            PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2