The base exception class that all the other Operations Manager exceptions are derived from is the Microsoft.EnterpriseManagement.Common.MonitoringException class.

Query criteria errors

When you are defining a query string for monitoring objects or monitoring classes, you must make sure 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 Microsoft.EnterpriseManagement.Common.QueryGrammarException can be thrown if the query string is invalid.

Management Pack errors

A Microsoft.EnterpriseManagement.Common.ManagementPackException can be thrown when there is an error in importing or parsing a Management Pack. This type of exception has an ExceptionCode property, and this property value can be used with the Microsoft.EnterpriseManagement.Common.ManagementPackExceptionCode enumeration to look up the type of Management Pack exception that occurred. The error code can also be passed to the GetMessage method of the Microsoft.EnterpriseManagement.Common.ManagementPackExceptionMessages 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 SDK 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 SDK Service. The most common exceptions that occur due to connection errors are:

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

List of SDK exceptions

The following list contains all the exception classes for the Operations Manager 2007 SDK:

Microsoft.EnterpriseManagement.Common.AgentPendingActionException

Microsoft.EnterpriseManagement.Common.AuthorizationStoreNotFoundException

Microsoft.EnterpriseManagement.Common.ConcurrentUpdateException

Microsoft.EnterpriseManagement.Common.ConfigServiceUnavailableException

Microsoft.EnterpriseManagement.Common.ConfigurationSearchException

Microsoft.EnterpriseManagement.Common.ConnectorAlreadyExistsException

Microsoft.EnterpriseManagement.Common.ConnectorAlreadyInStateException

Microsoft.EnterpriseManagement.Common.ConnectorDoesNotOwnObjectException

Microsoft.EnterpriseManagement.Common.ConnectorInvalidException

Microsoft.EnterpriseManagement.Common.CreateSystemUserRoleNotAllowedException

Microsoft.EnterpriseManagement.Common.DataAccessLayerException

Microsoft.EnterpriseManagement.Common.DatabaseObjectDoesNotExistException

Microsoft.EnterpriseManagement.Common.DatabaseUnavailableException

Microsoft.EnterpriseManagement.Common.DataItemDoesNotExistException

Microsoft.EnterpriseManagement.Common.DeleteSystemUserRoleNotAllowedException

Microsoft.EnterpriseManagement.Common.DeserializationException

Microsoft.EnterpriseManagement.Common.DiscoveryDataAbstractMonitoringClassIdNotAllowedException

Microsoft.EnterpriseManagement.Common.DiscoveryDataAbstractRelationshipTypeIdNotAllowedException

Microsoft.EnterpriseManagement.Common.DiscoveryDataDiscoverySourceNotAllowedException

Microsoft.EnterpriseManagement.Common.DiscoveryDataFromRuleTargetedToDeletedMonitoringObjectException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidMonitoringClassIdException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidMonitoringClassPropertyValueException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidRelationshipSourceException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidRelationshipSourceRoleTypeIdException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidRelationshipTargetException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidRelationshipTargetRoleTypeIdException

Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidRelationshipTypeIdException

Microsoft.EnterpriseManagement.Common.DiscoveryDataMissingKeyException

Microsoft.EnterpriseManagement.Common.DiscoveryDataMonitoringClassPropertyValueAlreadyExistsException

Microsoft.EnterpriseManagement.Common.DiscoveryDataPropertyNotAllowedException

Microsoft.EnterpriseManagement.Common.DiscoveryDataRelationshipNotAllowedException

Microsoft.EnterpriseManagement.Common.DiscoveryDataUnresolvedMonitoringClassPropertyNameException

Microsoft.EnterpriseManagement.Common.EditSystemUserRoleNotAllowedException

Microsoft.EnterpriseManagement.Common.EventDataValidationFailureException

Microsoft.EnterpriseManagement.Common.HealthServiceUnavailableException

Microsoft.EnterpriseManagement.Common.InconsistentDataException

Microsoft.EnterpriseManagement.Common.InvalidConnectionException

Microsoft.EnterpriseManagement.Common.InvalidCriteriaException

Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException

Microsoft.EnterpriseManagement.Common.InvalidJobConfigurationException

Microsoft.EnterpriseManagement.Common.InvalidMonitoringClassInUserRoleScopeException

Microsoft.EnterpriseManagement.Common.InvalidMonitoringObjectInUserRoleScopeException

Microsoft.EnterpriseManagement.Common.InvalidMonitoringProfileException

Microsoft.EnterpriseManagement.Common.InvalidMonitoringTaskInUserRoleScopeException

Microsoft.EnterpriseManagement.Common.InvalidMonitoringUserRoleNameException

Microsoft.EnterpriseManagement.Common.InvalidMonitoringViewInUserRoleScopeException

Microsoft.EnterpriseManagement.Common.InvalidReaderException

Microsoft.EnterpriseManagement.Common.LocationMonitoringObjectCertificateNotFoundException

Microsoft.EnterpriseManagement.Common.LocationMonitoringObjectNotAvailableException

Microsoft.EnterpriseManagement.Common.LocationMonitoringObjectNotFoundException

Microsoft.EnterpriseManagement.Common.LocationMonitoringObjectNotManagedException

Microsoft.EnterpriseManagement.Common.ManagementPackException

Microsoft.EnterpriseManagement.Common.ManagementServersImmutableException

Microsoft.EnterpriseManagement.Common.MissingUserInSystemUserRoleException

Microsoft.EnterpriseManagement.Common.MissingUserRoleException

Microsoft.EnterpriseManagement.Common.MonitoringClassInUserRoleScopeAlreadyExistsException

Microsoft.EnterpriseManagement.Common.MonitoringClassInUserRoleScopeNotAllowedException

Microsoft.EnterpriseManagement.Common.MonitoringException

Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeAlreadyExistsException

Microsoft.EnterpriseManagement.Common.MonitoringObjectInUserRoleScopeNotAllowedException

Microsoft.EnterpriseManagement.Common.MonitoringTaskInUserRoleScopeAlreadyExistsException

Microsoft.EnterpriseManagement.Common.MonitoringTaskInUserRoleScopeNotAllowedException

Microsoft.EnterpriseManagement.Common.MonitoringViewInUserRoleScopeAlreadyExistsException

Microsoft.EnterpriseManagement.Common.MonitoringViewInUserRoleScopeNotAllowedException

Microsoft.EnterpriseManagement.Common.MultipleUsersInSystemUserRoleException

Microsoft.EnterpriseManagement.Common.NullConstraintException

Microsoft.EnterpriseManagement.Common.ObjectAlreadyExistsException

Microsoft.EnterpriseManagement.Common.ObjectNotConnectedException

Microsoft.EnterpriseManagement.Common.ObjectNotFoundException

Microsoft.EnterpriseManagement.Common.QueryDefinitionDoesNotExistException

Microsoft.EnterpriseManagement.Common.QueryGrammarException

Microsoft.EnterpriseManagement.Common.SdkServiceNotInitializedException

Microsoft.EnterpriseManagement.Common.ServerDisconnectedException

Microsoft.EnterpriseManagement.Common.ServiceNotRunningException

Microsoft.EnterpriseManagement.Common.SubmitJobException

Microsoft.EnterpriseManagement.Common.TieredMonitoringException

Microsoft.EnterpriseManagement.Common.TieringSetupException

Microsoft.EnterpriseManagement.Common.UnauthorizedAccessMonitoringException

Microsoft.EnterpriseManagement.Common.UndeclaredTemplateReferenceException

Microsoft.EnterpriseManagement.Common.UniquenessConstraintException

Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException

Microsoft.EnterpriseManagement.Common.UnknownChannelException

Microsoft.EnterpriseManagement.Common.UnknownDatabaseException

Microsoft.EnterpriseManagement.Common.UnknownServiceException

Microsoft.EnterpriseManagement.Common.UserRoleAdministratorAlreadyExistsException

Microsoft.EnterpriseManagement.Common.UserRoleUserUnresolvedException


Send comments about this topic to Microsoft.