Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 815 Bytes

errors.md

File metadata and controls

17 lines (14 loc) · 815 Bytes

Errors

All exceptions derive from NanoKVMError and are importable from nanokvm.client.

Exception Raised when
NanoKVMNotSupportedError The detected hardware or firmware lacks the endpoint; nothing was sent
NanoKVMAuthenticationFailure Login was rejected
NanoKVMNotAuthenticatedError There is no session, or a newer login or logout replaced it
NanoKVMPermissionError The account lacks permission; the session stays valid
NanoKVMApiError The device answered with an error code
NanoKVMInvalidResponseError The response could not be parsed

NanoKVMPermissionError carries status, method and path. NanoKVMApiError carries the numeric code; the device's msg and data are available as attributes but left out of the exception message.