# Exceptions module

This module contains all constants in use by the TIPCommon package and common
constants used in Google Security Operations Content Hub integrations.

##### Example

    from TIPCommon.exceptions import ConnectorProcessingError
    raise ConnectorProcessingError('spam and eggs')

### *exception* TIPCommon.exceptions.ActionSetupError

Bases: [**GeneralActionException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genactionexception)

An action initialization error.

### *exception* TIPCommon.exceptions.AlreadyExistsError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

A Google Cloud resource already exists.

### *exception* TIPCommon.exceptions.BadGatewayError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

A server between the client and the backend Google Cloud servers detected a temporary issue.

### *exception* TIPCommon.exceptions.CaseResultError

Bases: [**GeneralActionException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genactionexception)

Error when sending data to the case result.

### *exception* TIPCommon.exceptions.ConnectorContextError

Bases: [**GeneralConnectorException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genconexception)

A connector context error.

### *exception* TIPCommon.exceptions.ConnectorProcessingError

Bases: [**GeneralConnectorException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genconexception)

A connector processing error.

### *exception* TIPCommon.exceptions.ConnectorSetupError

Bases: [**GeneralConnectorException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genconexception)

A connector initialization error.

### *exception* TIPCommon.exceptions.ConnectorValidationError

Bases: [**GeneralConnectorException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genconexception)

A connector validation error.

### *exception* TIPCommon.exceptions.DeadlineExceededError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

The request did not complete in the time allocated.

### *exception* TIPCommon.exceptions.EmptyMandatoryValues

Bases: **Exception**

An exception for empty mandatory values.

### *exception* TIPCommon.exceptions.EnrichActionError

Bases: [**GeneralActionException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genactionexception)

An enrichment action error.

### *exception* TIPCommon.exceptions.FailedPreconditionError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

A failed precondition error for a Google Cloud request.

### *exception* TIPCommon.exceptions.GeneralActionException

Bases: **Exception**

A general action exception.

### *exception* TIPCommon.exceptions.GeneralConnectorException

Bases: **Exception**

A general connector exception.

### *exception* TIPCommon.exceptions.GeneralJobException

Bases: **Exception**

A general job exception.

### *exception* TIPCommon.exceptions.GoogleCloudException

Bases: **Exception**

A general Google Cloud exception.

### *exception* TIPCommon.exceptions.ImpersonationUnauthorizedError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

The caller is not authorized to impersonate the service account.

### *exception* TIPCommon.exceptions.InternalJSONDecoderError

Bases: **Exception**

An internal JSON parsing error using `json.load/dump`. Message only.

### *exception* TIPCommon.exceptions.InvalidArgumentError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

An invalid request to the Google Cloud resource.

### *exception* TIPCommon.exceptions.InvalidTimeException

Bases: **Exception**

An exception for invalid time.

### *exception* TIPCommon.exceptions.JobSetupError

Bases: [**GeneralActionException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genactionexception)

A job initialization error.

### *exception* TIPCommon.exceptions.NotFoundError

Bases: [**GoogleCloudPubSubException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#gcp-pubsub-exception)

The Google Cloud resource was not found.

### *exception* TIPCommon.exceptions.OauthError

Bases: **Exception**

A generic exception raised when an error occurs in an OAuth 2.0 flow.

### *exception* TIPCommon.exceptions.ParameterExtractionError

Bases: **Exception**

A parameter extraction error.

### *exception* TIPCommon.exceptions.ParameterValidationError

Bases: **Exception**

Invalid parameter.

### *exception* TIPCommon.exceptions.PermissionDeniedError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

The client does not have permission to perform the operation on the resource.

### *exception* TIPCommon.exceptions.RefreshTokenRenewalJobException

Bases: [**GeneralJobException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#gen-job-exception)

A failure in a `RefreshTokenRenewalJob` instance.

### *exception* TIPCommon.exceptions.ResourceExhaustedError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

The quota for the Google Cloud project exceeded, or there are too many concurrent requests from the client.

### *exception* TIPCommon.exceptions.SDKWrapperError

Bases: [**GeneralActionException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-genactionexception)

A SDK method wrapper error.

### *exception* TIPCommon.exceptions.SMIMEMailError

Bases: **Exception**

A custom exception for S/MIME email processing errors.

### *exception* TIPCommon.exceptions.UnauthenticatedError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

Client authentication error.

### *exception* TIPCommon.exceptions.UnavailableError

Bases: [**GoogleCloudException**](https://docs.cloud.google.com/chronicle/docs/soar/marketplace-integrations/tipcommon/tc-exceptions-module#exceptions-gcexception)

The Google Cloud service was unable to process a request.

**Need more help?** [Get answers from Community members and Google SecOps professionals.](https://security.googlecloudcommunity.com/)