例外狀況模組
這個模組包含 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
要求未在指定時間內完成。
例外狀況 TIPCommon.exceptions.EmptyMandatoryValues
基底:例外狀況
空白必填值例外狀況。
exception TIPCommon.exceptions.EnrichActionError
擴充動作發生錯誤。
exception TIPCommon.exceptions.FailedPreconditionError
要求發生先決條件無效錯誤。 Google Cloud
exception TIPCommon.exceptions.GeneralActionException
基底:例外狀況
一般動作例外狀況。
例外狀況 TIPCommon.exceptions.GeneralConnectorException
基底:例外狀況
一般連接器例外狀況。
例外狀況 TIPCommon.exceptions.GeneralJobException
基底:例外狀況
一般工作例外狀況。
exception TIPCommon.exceptions.GoogleCloudException
基底:例外狀況
一般 Google Cloud 例外狀況。
exception TIPCommon.exceptions.ImpersonationUnauthorizedError
呼叫端未獲授權模擬服務帳戶。
exception TIPCommon.exceptions.InternalJSONDecoderError
基底:例外狀況
使用 json.load/dump
時發生內部 JSON 剖析錯誤。僅限訊息。
exception TIPCommon.exceptions.InvalidArgumentError
對 Google Cloud 資源提出的要求無效。
例外狀況 TIPCommon.exceptions.InvalidTimeException
基底:例外狀況
時間無效的例外狀況。
exception TIPCommon.exceptions.JobSetupError
工作初始化錯誤。
exception TIPCommon.exceptions.NotFoundError
找不到資源。 Google Cloud
exception TIPCommon.exceptions.OauthError
基底:例外狀況
OAuth 2.0 流程發生錯誤時引發的一般例外狀況。
exception TIPCommon.exceptions.ParameterExtractionError
基底:例外狀況
參數擷取錯誤。
exception TIPCommon.exceptions.ParameterValidationError
基底:例外狀況
參數無效。
exception TIPCommon.exceptions.PermissionDeniedError
用戶端無權對資源執行作業。
例外狀況 TIPCommon.exceptions.RefreshTokenRenewalJobException
RefreshTokenRenewalJob
執行個體發生故障。
exception TIPCommon.exceptions.ResourceExhaustedError
已超過 Google Cloud 專案配額,或用戶端同時提出的要求過多。
exception TIPCommon.exceptions.SDKWrapperError
SDK 方法包裝函式錯誤。
exception TIPCommon.exceptions.SMIMEMailError
基底:例外狀況
針對 S/MIME 電子郵件處理錯誤的自訂例外狀況。
exception TIPCommon.exceptions.UnauthenticatedError
用戶端驗證錯誤。
exception TIPCommon.exceptions.UnavailableError
Google Cloud 服務無法處理要求。
還有其他問題嗎?向社群成員和 Google SecOps 專業人員尋求答案。