"""A file dedicated for custom exceptions.""" class OwsServiceException(Exception): """Custom exception when making ows service requests.""" status_code: int def __init__(self, message: str, status_code: int): """Construct the object. Args: message (str): Error message status_code (int): Status code from the response """ self.status_code = status_code super().__init__(message)