异常模块
此模块包含 TIPCommon 软件包使用的所有常量,以及 Google Security Operations Marketplace 集成中使用的常见常量。
示例
from TIPCommon.exceptions import ConnectorProcessingError
raise ConnectorProcessingError('spam and eggs')
exception TIPCommon.exceptions.ActionSetupError
操作初始化错误。
exception TIPCommon.exceptions.AlreadyExistsError
Google Cloud 资源已存在。
exception TIPCommon.exceptions.BadGatewayError
客户端与后端 Google Cloud 服务器之间的某个服务器检测到临时问题。
exception TIPCommon.exceptions.CaseResultError
向测试用例结果发送数据时出错。
exception TIPCommon.exceptions.ConnectorContextError
连接器上下文错误。
exception TIPCommon.exceptions.ConnectorProcessingError
连接器处理错误。
exception TIPCommon.exceptions.ConnectorSetupError
连接器初始化错误。
exception TIPCommon.exceptions.ConnectorValidationError
连接器验证错误。
exception TIPCommon.exceptions.DeadlineExceededError
请求未在分配的时间内完成。
例外提示:Common.exceptions.EmptyMandatoryValues
基类:Exception
针对空强制性值的异常。
exception TIPCommon.exceptions.EnrichActionError
富集操作错误。
exception TIPCommon.exceptions.FailedPreconditionError
针对 Google Cloud 请求的“未能满足前提条件”错误。
exception TIPCommon.exceptions.GeneralActionException
基类:Exception
一般操作异常。
例外情况提示:Common.exceptions.GeneralConnectorException
基类:Exception
一般连接器异常。
例外情况提示:Common.exceptions.GeneralJobException
基类:Exception
一般作业异常。
异常 TIPCommon.exceptions.GoogleCloudException
基类:Exception
一种常规 Google Cloud 异常。
exception TIPCommon.exceptions.ImpersonationUnauthorizedError
调用方无权模拟服务账号。
exception TIPCommon.exceptions.InternalJSONDecoderError
基类:Exception
使用 json.load/dump
时出现内部 JSON 解析错误。仅限消息。
exception TIPCommon.exceptions.InvalidArgumentError
针对 Google Cloud 资源的无效请求。
例外情况 TIPCommon.exceptions.InvalidTimeException
基类:Exception
针对无效时间的例外情况。
exception TIPCommon.exceptions.JobSetupError
作业初始化错误。
exception TIPCommon.exceptions.NotFoundError
找不到 Google Cloud 资源。
exception TIPCommon.exceptions.OauthError
基类:Exception
在 OAuth 2.0 流程中发生错误时引发的通用异常。
exception TIPCommon.exceptions.ParameterExtractionError
基类:Exception
参数提取错误。
exception TIPCommon.exceptions.ParameterValidationError
基类:Exception
参数无效。
exception TIPCommon.exceptions.PermissionDeniedError
客户端无权对资源执行相应操作。
例外情况 TIPCommon.exceptions.RefreshTokenRenewalJobException
RefreshTokenRenewalJob
实例中的故障。
exception TIPCommon.exceptions.ResourceExhaustedError
Google Cloud 项目的配额已超出,或者客户端同时发出的请求过多。
exception TIPCommon.exceptions.SDKWrapperError
SDK 方法封装容器错误。
exception TIPCommon.exceptions.SMIMEMailError
基类:Exception
针对 S/MIME 电子邮件处理错误的自定义异常。
exception TIPCommon.exceptions.UnauthenticatedError
客户端身份验证错误。
exception TIPCommon.exceptions.UnavailableError
Google Cloud 服务无法处理请求。
需要更多帮助?从社区成员和 Google SecOps 专业人士那里获得解答。