Exceptions in Operations Manager

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

In the System Center 2012 – Operations Manager software development kit (SDK), all exceptions are defined in the of the .

The class is the base class from which all other Operations Manager exception classes derive.

Query Criteria Errors

When you are defining a query string for monitoring objects or monitoring classes, you must make sure that the query string is using the correct syntax or grammar. For information about querying for objects, see Using Operations Manager Data Queries. When you use the defined query to retrieve monitoring objects or monitoring classes, the can be thrown if the query string is not valid.

Management Pack Errors

A can be thrown when there is an error in importing or parsing a management pack. This type of exception has an property, and this property value can be used with the enumeration to look up the type of management pack exception that occurred. The error code can also be passed to the method of the class to determine the localized management pack exception message.

SDK Connection Errors

Before you start using the Operations Manager SDK classes, you must connect to the System Center Data Access service. There are a few exceptions that can be thrown and handled while you are connecting to the service. For more information, see How to Connect an Operations Manager SDK Client to the System Center Data Access Service. The most common exceptions that occur as a result of connection errors are the following:







If an SDK client attempts to access a method that is not allowed by the current user's profile, an is thrown. The SDK client can handle this exception to notify users that they do not have the appropriate user rights for the requested operation.

noteNote
Whenever an SDK exception occurs, the client will be disconnected from the server.

List of SDK Exceptions

The following list contains all the exception classes for the System Center 2012 – Operations Manager SDK:

AgentPendingActionException

AuthorizationStoreNotFoundException

ConcurrentUpdateException

ConfigServiceUnavailableException

ConfigurationSearchException

ConnectorAlreadyExistsException

ConnectorAlreadyInStateException

ConnectorDoesNotOwnObjectException

ConnectorInvalidException

CreateSystemUserRoleNotAllowedException

DataAccessLayerException

DatabaseObjectDoesNotExistException

DatabaseUnavailableException

DataItemDoesNotExistException

DeleteSystemUserRoleNotAllowedException

DeserializationException

DiscoveryDataAbstractMonitoringClassIdNotAllowedException

DiscoveryDataAbstractRelationshipTypeIdNotAllowedException

DiscoveryDataDiscoverySourceNotAllowedException

DiscoveryDataFromRuleTargetedToDeletedMonitoringObjectException

DiscoveryDataInvalidMonitoringClassIdException

DiscoveryDataInvalidMonitoringClassPropertyValueException

DiscoveryDataInvalidRelationshipSourceException

DiscoveryDataInvalidRelationshipSourceRoleTypeIdException

DiscoveryDataInvalidRelationshipTargetException

DiscoveryDataInvalidRelationshipTargetRoleTypeIdException

DiscoveryDataInvalidRelationshipTypeIdException

DiscoveryDataMissingKeyException

DiscoveryDataMonitoringClassPropertyValueAlreadyExistsException

DiscoveryDataPropertyNotAllowedException

DiscoveryDataRelationshipNotAllowedException

DiscoveryDataUnresolvedMonitoringClassPropertyNameException

EditSystemUserRoleNotAllowedException

EventDataValidationFailureException

HealthServiceUnavailableException

InconsistentDataException

InvalidConnectionException

InvalidCriteriaException

InvalidDatabaseDataException

InvalidJobConfigurationException

InvalidMonitoringClassInUserRoleScopeException

InvalidMonitoringObjectInUserRoleScopeException

InvalidMonitoringProfileException

InvalidMonitoringTaskInUserRoleScopeException

InvalidMonitoringUserRoleNameException

InvalidMonitoringViewInUserRoleScopeException

InvalidReaderException

LocationMonitoringObjectCertificateNotFoundException

LocationMonitoringObjectNotAvailableException

LocationMonitoringObjectNotFoundException

LocationMonitoringObjectNotManagedException

ManagementPackException

ManagementServersImmutableException

MissingUserInSystemUserRoleException

MissingUserRoleException

MonitoringClassInUserRoleScopeAlreadyExistsException

MonitoringClassInUserRoleScopeNotAllowedException

MonitoringException

MonitoringObjectInUserRoleScopeAlreadyExistsException

MonitoringObjectInUserRoleScopeNotAllowedException

MonitoringTaskInUserRoleScopeAlreadyExistsException

MonitoringTaskInUserRoleScopeNotAllowedException

MonitoringViewInUserRoleScopeAlreadyExistsException

MonitoringViewInUserRoleScopeNotAllowedException

MultipleUsersInSystemUserRoleException

NullConstraintException

ObjectAlreadyExistsException

ObjectNotConnectedException

ObjectNotFoundException

QueryDefinitionDoesNotExistException

QueryGrammarException

SdkServiceNotInitializedException

ServerDisconnectedException

ServiceNotRunningException

SubmitJobException

TieredMonitoringException

TieringSetupException

UnauthorizedAccessMonitoringException

UndeclaredTemplateReferenceException

UniquenessConstraintException

UnknownAuthorizationStoreException

UnknownChannelException

UnknownDatabaseException

UnknownServiceException

UserRoleAdministratorAlreadyExistsException

UserRoleUserUnresolvedException

See Also