Skip to content

Exceptions

wingpy.exceptions

AuthenticationFailure

Bases: Exception

Raised when API authentication fails.

InvalidEndpointError

Bases: Exception

Raised when the specified API endpoint path is not valid for use in a URL.

UnsupportedMethodError

Bases: Exception

Raised when an unsupported HTTP method is used.

Some APIs do not support all HTTP methods. All methods must be implemented in client classes. This exception must be raised when an unsupported method is used. For example, if a client class does not implement the put method, this exception must be raised when the .put() method is called.