Exceptions module

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

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

exception TIPCommon.exceptions.ActionSetupError

Bases: GeneralActionException

An action initialization error.

exception TIPCommon.exceptions.AlreadyExistsError

Bases: GoogleCloudException

A Google Cloud resource already exists.

exception TIPCommon.exceptions.BadGatewayError

Bases: GoogleCloudException

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

exception TIPCommon.exceptions.CaseResultError

Bases: GeneralActionException

Error when sending data to the case result.

exception TIPCommon.exceptions.ConnectorContextError

Bases: GeneralConnectorException

A connector context error.

exception TIPCommon.exceptions.ConnectorProcessingError

Bases: GeneralConnectorException

A connector processing error.

exception TIPCommon.exceptions.ConnectorSetupError

Bases: GeneralConnectorException

A connector initialization error.

exception TIPCommon.exceptions.ConnectorValidationError

Bases: GeneralConnectorException

A connector validation error.

exception TIPCommon.exceptions.DeadlineExceededError

Bases: GoogleCloudException

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

An enrichment action error.

exception TIPCommon.exceptions.FailedPreconditionError

Bases: GoogleCloudException

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

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

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

A job initialization error.

exception TIPCommon.exceptions.NotFoundError

Bases: GoogleCloudPubSubException

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

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

exception TIPCommon.exceptions.RefreshTokenRenewalJobException

Bases: GeneralJobException

A failure in a RefreshTokenRenewalJob instance.

exception TIPCommon.exceptions.ResourceExhaustedError

Bases: GoogleCloudException

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

exception TIPCommon.exceptions.SDKWrapperError

Bases: GeneralActionException

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

Client authentication error.

exception TIPCommon.exceptions.UnavailableError

Bases: GoogleCloudException

The Google Cloud service was unable to process a request.

Need more help? Get answers from Community members and Google SecOps professionals.