resource-watch/gee-tiles

View on GitHub
geetiles/errors.py

Summary

Maintainability
A
0 mins
Test Coverage
C
71%
"""ERRORS"""


class Error(Exception):

    def __init__(self, message):
        self.message = message

    @property
    def serialize(self):
        return {
            'message': self.message
        }


class LayerNotFound(Error):
    pass