mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2025-01-09 18:58:46 +00:00
15 lines
382 B
Python
15 lines
382 B
Python
|
class HCloudException(Exception):
|
||
|
"""There was an error while using the hcloud library"""
|
||
|
|
||
|
|
||
|
class APIException(HCloudException):
|
||
|
"""There was an error while performing an API Request"""
|
||
|
|
||
|
def __init__(self, code, message, details):
|
||
|
self.code = code
|
||
|
self.message = message
|
||
|
self.details = details
|
||
|
|
||
|
def __str__(self):
|
||
|
return self.message
|