例外情况模块
此模块包含 TIPCommon 软件包使用的所有常量,以及 Google Security Operations Content Hub 集成中使用的通用常量。
示例
from TIPCommon.exceptions import ConnectorProcessingError
raise ConnectorProcessingError('spam and eggs')
异常 TIPCommon.exceptions.ActionSetupError
操作初始化错误。
exception TIPCommon.exceptions.AlreadyExistsError
Google Cloud 资源已存在。
异常 TIPCommon.exceptions.BadGatewayError
客户端与后端 Google Cloud 服务器之间的服务器检测到临时问题。
异常 TIPCommon.exceptions.CaseResultError
向用例结果发送数据时出错。
异常 TIPCommon.exceptions.ConnectorContextError
连接器上下文错误。
异常 TIPCommon.exceptions.ConnectorProcessingError
连接器处理错误。
异常 TIPCommon.exceptions.ConnectorSetupError
连接器初始化错误。
异常 TIPCommon.exceptions.ConnectorValidationError
连接器验证错误。
异常 TIPCommon.exceptions.DeadlineExceededError
请求未在分配的时间内完成。
exception TIPCommon.exceptions.EmptyMandatoryValues
基类:Exception
强制性值为空的异常。
异常 TIPCommon.exceptions.EnrichActionError
扩充操作错误。
异常 TIPCommon.exceptions.FailedPreconditionError
Google Cloud 请求的前提条件失败错误。
exception TIPCommon.exceptions.GeneralActionException
基类:Exception
一般操作异常。
exception TIPCommon.exceptions.GeneralConnectorException
基类:Exception
一般连接器异常。
exception TIPCommon.exceptions.GeneralJobException
基类:Exception
一般作业异常。
异常 TIPCommon.exceptions.GoogleCloudException
基类:Exception
常规 Google Cloud 异常。
异常 TIPCommon.exceptions.ImpersonationUnauthorizedError
调用方无权模拟服务账号。
异常 TIPCommon.exceptions.InternalJSONDecoderError
基类:Exception
使用 json.load/dump 时发生内部 JSON 解析错误。仅限消息。
异常 TIPCommon.exceptions.InvalidArgumentError
对 Google Cloud 资源的请求无效。
exception TIPCommon.exceptions.InvalidTimeException
基类:Exception
时间无效的异常。
异常 TIPCommon.exceptions.JobSetupError
作业初始化错误。
异常 TIPCommon.exceptions.NotFoundError
找不到 Google Cloud 资源。
exception TIPCommon.exceptions.OauthError
基类:Exception
OAuth 2.0 流程中发生错误时引发的常规异常。
异常 TIPCommon.exceptions.ParameterExtractionError
基类:Exception
参数提取错误。
异常 TIPCommon.exceptions.ParameterValidationError
基类:Exception
参数无效。
异常 TIPCommon.exceptions.PermissionDeniedError
客户端无权对资源执行该操作。
exception TIPCommon.exceptions.RefreshTokenRenewalJobException
RefreshTokenRenewalJob 实例发生故障。
异常 TIPCommon.exceptions.ResourceExhaustedError
Google Cloud 项目的配额已超出,或来自客户端的并发请求过多。
异常 TIPCommon.exceptions.SDKWrapperError
SDK 方法封装容器错误。
异常 TIPCommon.exceptions.SMIMEMailError
基类:Exception
S/MIME 邮件处理错误的自定义异常。
异常 TIPCommon.exceptions.UnauthenticatedError
客户端身份验证错误。
异常 TIPCommon.exceptions.UnavailableError
Google Cloud 服务无法处理请求。