exceptions

class cloudpassage.CloudPassageAuthentication(error_msg, **kwargs)

Exception related to authentication.

This is thrown in response to an issue authenticating against the CloudPassage Halo API

Parameters:error_msg (str) – Message describing error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str

class cloudpassage.CloudPassageAuthorization(error_msg, **kwargs)

Exception related to authorization.

Oftentimes related to the scope of the API credentials

Parameters:error_msg (str) – Message describing the error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str

class cloudpassage.CloudPassageCollision(error_msg)

Exception indicates a resource collision.

This is thrown when attempting to create a resource which already exists.

Parameters:error_msg (str) – Message describing the error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str

class cloudpassage.CloudPassageGeneral(error_msg, **kwargs)

This is thrown when a more specific exception type is unavailable.

The msg attribute should have plenty of information on what went wrong.

Parameters:error_msg (str) – Message describing the error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str

class cloudpassage.CloudPassageInternalError(error_msg, **kwargs)

This exception indicates an error in the Analytics Engine.

This is thrown when a HTTP response code of 500 is detected.

Parameters:error_msg (str) – Message describing the error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str

class cloudpassage.CloudPassageResourceExistence(error_msg, **kwargs)

This exception indicates that you’re trying to access a resource that doesn’t exist.

This is oftentimes thrown in response to a 404 from the API.

Parameters:error_msg (str) – Message describing the error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str

class cloudpassage.CloudPassageValidation(error_msg, **kwargs)

Exception related to request validation.

This can be thrown as a result of invalid information being passed to the API (in response to HTTP error) or as a result of failing to pass the SDK’s internal validation routines.

Parameters:error_msg (str) – Message describing the error
Keyword Arguments:
 code (int) – Numeric ID for error
msg

str