laceworksdk.exceptions
Package exceptions.
Module Contents
- exception laceworksdk.exceptions.LaceworkSDKException[source]
Bases:
ExceptionBase class for all lacework package exceptions.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception laceworksdk.exceptions.ApiError(response)[source]
Bases:
LaceworkSDKExceptionErrors returned in response to requests sent to the Lacework APIs.
Several data attributes are available for inspection.
- response
The
requests.Responseobject returned from the API call.
- request
The
requests.PreparedRequestof the API call.
- status_code
The HTTP status code from the API response.
- status
The HTTP status from the API response.
- details
The parsed JSON details from the API response.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception laceworksdk.exceptions.MalformedResponse[source]
Bases:
LaceworkSDKExceptionRaised when a malformed response is received from Lacework.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception laceworksdk.exceptions.RateLimitError(response)[source]
Bases:
ApiErrorLAcework Rate-Limit exceeded Error.
Raised when a rate-limit exceeded message is received and the request will not be retried.
- response
The
requests.Responseobject returned from the API call.
- request
The
requests.PreparedRequestof the API call.
- status_code
The HTTP status code from the API response.
- status
The HTTP status from the API response.
- details
The parsed JSON details from the API response.
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.