例外情况模块

此模块包含 TIPCommon 软件包使用的所有常量,以及 Google Security Operations Content Hub 集成中使用的通用常量。

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

异常 TIPCommon.exceptions.ActionSetupError

基类:GeneralActionException

操作初始化错误。

exception TIPCommon.exceptions.AlreadyExistsError

基类:GoogleCloudException

Google Cloud 资源已存在。

异常 TIPCommon.exceptions.BadGatewayError

基类:GoogleCloudException

客户端与后端 Google Cloud 服务器之间的服务器检测到临时问题。

异常 TIPCommon.exceptions.CaseResultError

基类:GeneralActionException

向用例结果发送数据时出错。

异常 TIPCommon.exceptions.ConnectorContextError

基类:GeneralConnectorException

连接器上下文错误。

异常 TIPCommon.exceptions.ConnectorProcessingError

基类:GeneralConnectorException

连接器处理错误。

异常 TIPCommon.exceptions.ConnectorSetupError

基类:GeneralConnectorException

连接器初始化错误。

异常 TIPCommon.exceptions.ConnectorValidationError

基类:GeneralConnectorException

连接器验证错误。

异常 TIPCommon.exceptions.DeadlineExceededError

基类:GoogleCloudException

请求未在分配的时间内完成。

exception TIPCommon.exceptions.EmptyMandatoryValues

基类:Exception

强制性值为空的异常。

异常 TIPCommon.exceptions.EnrichActionError

基类:GeneralActionException

扩充操作错误。

异常 TIPCommon.exceptions.FailedPreconditionError

基类:GoogleCloudException

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

基类:GoogleCloudException

调用方无权模拟服务账号。

异常 TIPCommon.exceptions.InternalJSONDecoderError

基类:Exception

使用 json.load/dump 时发生内部 JSON 解析错误。仅限消息。

异常 TIPCommon.exceptions.InvalidArgumentError

基类:GoogleCloudException

对 Google Cloud 资源的请求无效。

exception TIPCommon.exceptions.InvalidTimeException

基类:Exception

时间无效的异常。

异常 TIPCommon.exceptions.JobSetupError

基类:GeneralActionException

作业初始化错误。

异常 TIPCommon.exceptions.NotFoundError

基类:GoogleCloudPubSubException

找不到 Google Cloud 资源。

exception TIPCommon.exceptions.OauthError

基类:Exception

OAuth 2.0 流程中发生错误时引发的常规异常。

异常 TIPCommon.exceptions.ParameterExtractionError

基类:Exception

参数提取错误。

异常 TIPCommon.exceptions.ParameterValidationError

基类:Exception

参数无效。

异常 TIPCommon.exceptions.PermissionDeniedError

基类:GoogleCloudException

客户端无权对资源执行该操作。

exception TIPCommon.exceptions.RefreshTokenRenewalJobException

基类:GeneralJobException

RefreshTokenRenewalJob 实例发生故障。

异常 TIPCommon.exceptions.ResourceExhaustedError

基类:GoogleCloudException

Google Cloud 项目的配额已超出,或来自客户端的并发请求过多。

异常 TIPCommon.exceptions.SDKWrapperError

基类:GeneralActionException

SDK 方法封装容器错误。

异常 TIPCommon.exceptions.SMIMEMailError

基类:Exception

S/MIME 邮件处理错误的自定义异常。

异常 TIPCommon.exceptions.UnauthenticatedError

基类:GoogleCloudException

客户端身份验证错误。

异常 TIPCommon.exceptions.UnavailableError

基类:GoogleCloudException

Google Cloud 服务无法处理请求。

需要更多帮助?获得社区成员和 Google SecOps 专业人士的解答。