ansible-collection-hetzner-.../plugins/module_utils/vendor/hcloud/_exceptions.py

13 lines
364 B
Python
Raw Normal View History

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):
super().__init__(message)
self.code = code
self.message = message
self.details = details