[an error occurred while processing this directive]
[an error occurred while processing this directive] [an error occurred while processing this directive]

Pegasus CIM Object Broker Documentation

[an error occurred while processing this directive]


[an error occurred while processing this directive]

 

Contents

o Introduction
o Objectives
o Overview
o Credits
o Pegasus Architecture
   o Design Goals
   o The Broker
   o Pegasus Providers.
   o Extension Services
   o Pegasus Clients.
   o Functional Flow
o Pegasus Components
   o Component Descriptions
   o Pegasus Directory Structure
o Pegasus Utilization
   o Pegasus Availability
   o Pegasus Installation
   o Pegasus Operation
   o Pegasus CIM Clients
   o Pegasus Providers
   o Pegasus MOF Compiler
o Programming Pegasus
   o CIM Objects in Pegasus
   o CIM Object Table
   o Class Definitions
o Pegasus Interfaces
   o CIM Operations over HTTP
   o Pegasus Client Interfaces
   o Pegasus Provider Interfaces
   o Pegasus Service Extension Interfaces
   o Repository Interfaces
o Writing Providers.
o Glossary
o Pegasus Code Examples
   o Client Examples
   o Client Coding Examples
   o Provider Coding Examples
o Document References
o Pegausus FAQ
o
In file ../../src/Pegasus/Common/Exception.h:

class PEGASUS_COMMON_LINKAGE CIMException

The CIMException class models an error response to a CIM operation

Documentation

The CIMException class models an error response to a CIM operation

Inheritance:


Public Methods

[more] CIMException ( CIMStatusCode code = CIM_ERR_SUCCESS, const String& message = String::EMPTY)
Constructs a CIMException with a status code and error description message.
[more] CIMException ( CIMStatusCode code, const String& message, const CIMInstance& instance)
Constructs a CIMException with a status code, error description message, and a CIM_Error instance attached to the exception.
[more] CIMException ( CIMStatusCode code, const String& message, const Array<CIMInstance>& instances)
Constructs a CIMException with a status code, error description message, and an Array of CIM_Error instances attached to the exception.
[more] CIMException (const CIMException& cimException)
Constructs a CIMException by copying another CIMException object.
[more]CIMException& operator= (const CIMException& cimException)
Assigns the value from a specified CIMException object.
[more]virtual ~CIMException ()
Destructs a CIMException object
[more]CIMStatusCode getCode () const
Gets the CIMStatusCode for the current CIMException.
[more]Uint32 getErrorCount () const
Gets the count of CIM_Error instances attached to the CIMException.
[more]CIMConstInstance getError (Uint32 index) const
Gets a single CIM_Error instance that is attached to the CIMException.
[more]void addError (const CIMInstance& instance)
Adds a CIM_Error instance to a CIMException.


Inherited from Exception:

Public Methods

ovirtual const String& getMessage() const

Protected Fields

oExceptionRep* _rep

o CIMException( CIMStatusCode code = CIM_ERR_SUCCESS, const String& message = String::EMPTY)
Constructs a CIMException with a status code and error description message.
Parameters:
code - A CIMStatusCode containing a DMTF defined status code specifying the type of the error
message - A message String containing a more specific description of the error

o CIMException( CIMStatusCode code, const String& message, const CIMInstance& instance)
Constructs a CIMException with a status code, error description message, and a CIM_Error instance attached to the exception.
Parameters:
code - A CIMStatusCode containing a DMTF defined status code specifying the type of the error
message - A message String containing a more specific description of the error
instance - A CIMInstance containing the CIM_Error instance to be added to the CIMException. This instance is NOT validated for type correctness nor correlation with the specified status code and error description.

o CIMException( CIMStatusCode code, const String& message, const Array<CIMInstance>& instances)
Constructs a CIMException with a status code, error description message, and an Array of CIM_Error instances attached to the exception.
Parameters:
code - A CIMStatusCode containing a DMTF defined status code specifying the type of the error
message - A message String containing a more specific description of the error
instances - An Array of CIMInstance objects containing the CIM_Error instances to be added to the CIMException. These instances are NOT validated for type correctness nor correlation with the specified status code and error description.

o CIMException(const CIMException& cimException)
Constructs a CIMException by copying another CIMException object.
Parameters:
cimException - The CIMException object to copy

oCIMException& operator=(const CIMException& cimException)
Assigns the value from a specified CIMException object.
Parameters:
cimException - The CIMException object to copy
Returns:
A reference to this CIMException object with the new assignment

ovirtual ~CIMException()
Destructs a CIMException object

oCIMStatusCode getCode() const
Gets the CIMStatusCode for the current CIMException. This is the code that defines the ERROR that was executed and transmitted to the Client.
Returns:
a single CIMStatusCode

oUint32 getErrorCount() const
Gets the count of CIM_Error instances attached to the CIMException. Normally this method is used by a client to determine if any CIM_Error instances are attached to a CIMException.
Returns:
Uint32 count of CIM_Error instances attached to the CIMException.

oCIMConstInstance getError(Uint32 index) const
Gets a single CIM_Error instance that is attached to the CIMException. Example:
            try
            {
                ... Execute CIM Operation
            }
            catch (CIMException& e)
            {
                for (Uint32 i = 0 ; i < e.getErrorCount() ; i++)
                    ... process e.getError(i)
            }
        
Throws:
IndexOutOfRangeException If the index is greater or equal to the number of CIM_Error instances attached to the CIMExcepton.
Parameters:
index - A Uint32 index specifying the index of the CIM_Error instance to get from the CIMException. The index must be less than the getErrorCount() return value.
Returns:
A CIMConstInstance containing the CIM_Error instance at the specified index.

ovoid addError(const CIMInstance& instance)
Adds a CIM_Error instance to a CIMException.
Parameters:
instance - A CIMInstance containing the CIM_Error instance to be added to the CIMException. This instance is NOT validated for type correctness nor correlation with the status code and error description already set in the CIMException.


Direct child classes:
CIMOperationFailedException

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]