mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2025-01-08 02:08:47 +00:00
ff539800aa
* deps: update dependency hcloud to v1.27.1 * chore: update vendored files --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jo <ljonas@riseup.net>
17 lines
446 B
Python
17 lines
446 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
|
|
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: int | str, message: str, details: Any):
|
|
super().__init__(message)
|
|
self.code = code
|
|
self.message = message
|
|
self.details = details
|