mirror of https://github.com/GNS3/gns3-server
parent
7f185663d1
commit
f5ed9fbcf1
@ -1,45 +1,67 @@
|
|||||||
""" Exception classes for CloudCtrl classes. """
|
""" Exception classes for CloudCtrl classes. """
|
||||||
|
|
||||||
|
|
||||||
class ApiError(Exception):
|
class ApiError(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 500 Compute Error. """
|
""" Raised when the server returns 500 Compute Error. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class BadRequest(Exception):
|
class BadRequest(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 400 Bad Request. """
|
""" Raised when the server returns 400 Bad Request. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ComputeFault(Exception):
|
class ComputeFault(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 400|500 Compute Fault. """
|
""" Raised when the server returns 400|500 Compute Fault. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Forbidden(Exception):
|
class Forbidden(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 403 Forbidden. """
|
""" Raised when the server returns 403 Forbidden. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ItemNotFound(Exception):
|
class ItemNotFound(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 404 Not Found. """
|
""" Raised when the server returns 404 Not Found. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class KeyPairExists(Exception):
|
class KeyPairExists(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 409 Conflict Key pair exists. """
|
""" Raised when the server returns 409 Conflict Key pair exists. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MethodNotAllowed(Exception):
|
class MethodNotAllowed(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 405 Method Not Allowed. """
|
""" Raised when the server returns 405 Method Not Allowed. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class OverLimit(Exception):
|
class OverLimit(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 413 Over Limit. """
|
""" Raised when the server returns 413 Over Limit. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ServerCapacityUnavailable(Exception):
|
class ServerCapacityUnavailable(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 503 Server Capacity Uavailable. """
|
""" Raised when the server returns 503 Server Capacity Uavailable. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ServiceUnavailable(Exception):
|
class ServiceUnavailable(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 503 Service Unavailable. """
|
""" Raised when the server returns 503 Service Unavailable. """
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Unauthorized(Exception):
|
class Unauthorized(Exception):
|
||||||
|
|
||||||
""" Raised when the server returns 401 Unauthorized. """
|
""" Raised when the server returns 401 Unauthorized. """
|
||||||
pass
|
pass
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue