The watcherclient.exceptions Module

watcherclient.exceptions.AmbigiousAuthSystem

alias of AmbiguousAuthSystem

exception watcherclient.exceptions.AmbiguousAuthSystem[source]

Bases: watcherclient.common.apiclient.exceptions.ClientException

Could not obtain token and endpoint using provided credentials.

exception watcherclient.exceptions.CommandError

Bases: watcherclient.common.apiclient.exceptions.ClientException

Error in CLI tool.

An alias of watcherclient.common.apiclient.CommandError

exception watcherclient.exceptions.InternalServerError(message=None, details=None, response=None, request_id=None, url=None, method=None, http_status=None)

Bases: watcherclient.common.apiclient.exceptions.HttpServerError

HTTP 500 - Internal Server Error.

A generic error message, given when no more specific message is suitable. An alias of watcherclient.common.apiclient.InternalServerError

http_status = 500
message = u'Internal Server Error'
exception watcherclient.exceptions.InvalidAttribute[source]

Bases: watcherclient.common.apiclient.exceptions.ClientException

exception watcherclient.exceptions.Unauthorized(message=None, details=None, response=None, request_id=None, url=None, method=None, http_status=None)

Bases: watcherclient.common.apiclient.exceptions.HTTPClientError

HTTP 401 - Unauthorized.

Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided. An alias of watcherclient.common.apiclient.Unauthorized

http_status = 401
message = u'Unauthorized'
exception watcherclient.exceptions.ValidationError

Bases: watcherclient.common.apiclient.exceptions.ClientException

Error in validation on API client side.

A generic error message, given when no more specific message is suitable. An alias of watcherclient.common.apiclient.ValidationError

watcherclient.exceptions.from_response(response, message=None, traceback=None, method=None, url=None)[source]

Return an HttpError instance based on response from httplib/requests.

Previous topic

The watcherclient.common.utils Module

Next topic

The watcherclient.plugin Module

Project Source

This Page