laceworksdk.exceptions

Package exceptions.

Module Contents

exception laceworksdk.exceptions.LaceworkSDKException[source]

Bases: Exception

Base 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: LaceworkSDKException

Errors returned in response to requests sent to the Lacework APIs.

Several data attributes are available for inspection.

response

The requests.Response object returned from the API call.

request

The requests.PreparedRequest of 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: LaceworkSDKException

Raised 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: ApiError

LAcework Rate-Limit exceeded Error.

Raised when a rate-limit exceeded message is received and the request will not be retried.

response

The requests.Response object returned from the API call.

request

The requests.PreparedRequest of 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.