"""Exceptions used for lambda reponses.""" class CustomReportException(Exception): """Custom exception used by custom reports.""" def __init__(self, message: str) -> None: """Construct the object. Args: message (str): exception message """ super().__init__(message) class OwsServiceException(Exception): """Custom exception when making ows service requests.""" status_code: int def __init__(self, message: str, status_code: int) -> None: """Construct the object. Args: message (str): Error message status_code (int): Status code from the response """ self.status_code = status_code super().__init__(message)