mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2025-01-09 10:48:49 +00:00
8a6157e8b2
* chore: ignore venv directories * chore: ignore integration test generated inventory * feat: vendor hcloud package * import https://github.com/hetznercloud/hcloud-python * use vendored hcloud in modules * update integration test requirements * make vendor script self contained * chore: add check-hcloud-vendor pre-commit hook * pin hcloud version to v.1.24.0 * move vendored __version__.py file to _version.py * update comment about galaxy-importer filename lint
14 lines
382 B
Python
14 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
|