「例外狀況」模組

這個模組包含 TIPCommon 套件使用的所有常數,以及 Google Security Operations Content Hub 整合中使用的通用常數。

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

exception TIPCommon.exceptions.ActionSetupError

基礎:GeneralActionException

動作初始化錯誤。

exception TIPCommon.exceptions.AlreadyExistsError

基礎:GoogleCloudException

已有 Google Cloud 資源。

exception TIPCommon.exceptions.BadGatewayError

基礎:GoogleCloudException

用戶端與後端 Google Cloud 伺服器之間的伺服器偵測到暫時性問題。

exception TIPCommon.exceptions.CaseResultError

基礎:GeneralActionException

將資料傳送至案件結果時發生錯誤。

exception TIPCommon.exceptions.ConnectorContextError

基礎:GeneralConnectorException

連接器內容錯誤。

exception TIPCommon.exceptions.ConnectorProcessingError

基礎:GeneralConnectorException

連接器處理錯誤。

exception TIPCommon.exceptions.ConnectorSetupError

基礎:GeneralConnectorException

連接器初始化錯誤。

exception TIPCommon.exceptions.ConnectorValidationError

基礎:GeneralConnectorException

連接器驗證錯誤。

exception TIPCommon.exceptions.DeadlineExceededError

基礎:GoogleCloudException

要求未在分配的時間內完成。

exception TIPCommon.exceptions.EmptyMandatoryValues

基礎:Exception

必填值空白的例外狀況。

exception TIPCommon.exceptions.EnrichActionError

基礎:GeneralActionException

擴充動作錯誤。

exception TIPCommon.exceptions.FailedPreconditionError

基礎:GoogleCloudException

Google Cloud 要求發生先決條件失敗錯誤。

exception TIPCommon.exceptions.GeneralActionException

基礎:Exception

一般動作例外狀況。

exception TIPCommon.exceptions.GeneralConnectorException

基礎:Exception

一般連接器例外狀況。

exception TIPCommon.exceptions.GeneralJobException

基礎:Exception

一般工作例外狀況。

exception TIPCommon.exceptions.GoogleCloudException

基礎:Exception

一般 Google Cloud 例外狀況。

exception TIPCommon.exceptions.ImpersonationUnauthorizedError

基礎:GoogleCloudException

呼叫端未獲授權,無法模擬服務帳戶。

exception TIPCommon.exceptions.InternalJSONDecoderError

基礎:Exception

使用 json.load/dump 時發生內部 JSON 剖析錯誤。僅限訊息。

exception TIPCommon.exceptions.InvalidArgumentError

基礎:GoogleCloudException

對 Google Cloud 資源提出無效要求。

exception TIPCommon.exceptions.InvalidTimeException

基礎:Exception

時間無效的例外狀況。

exception TIPCommon.exceptions.JobSetupError

基礎:GeneralActionException

工作初始化錯誤。

exception TIPCommon.exceptions.NotFoundError

基礎:GoogleCloudPubSubException

找不到 Google Cloud 資源。

exception TIPCommon.exceptions.OauthError

基礎:Exception

OAuth 2.0 流程發生錯誤時,會擲回一般例外狀況。

exception TIPCommon.exceptions.ParameterExtractionError

基礎:Exception

參數擷取錯誤。

exception TIPCommon.exceptions.ParameterValidationError

基礎:Exception

參數無效。

exception TIPCommon.exceptions.PermissionDeniedError

基礎:GoogleCloudException

用戶端無權對資源執行作業。

exception TIPCommon.exceptions.RefreshTokenRenewalJobException

基礎:GeneralJobException

RefreshTokenRenewalJob 執行個體故障。

exception TIPCommon.exceptions.ResourceExhaustedError

基礎:GoogleCloudException

已超過 Google Cloud 專案配額,或用戶端並行要求過多。

exception TIPCommon.exceptions.SDKWrapperError

基礎:GeneralActionException

SDK 方法包裝函式錯誤。

exception TIPCommon.exceptions.SMIMEMailError

基礎:Exception

S/MIME 電子郵件處理錯誤的自訂例外狀況。

exception TIPCommon.exceptions.UnauthenticatedError

基礎:GoogleCloudException

用戶端驗證錯誤。

exception TIPCommon.exceptions.UnavailableError

基礎:GoogleCloudException

Google Cloud 服務無法處理要求。

還有其他問題嗎?向社群成員和 Google SecOps 專家尋求解答。