Source code for safe.common.exceptions
"""
InaSAFE Disaster risk assessment tool developed by AusAid -
**Exception Classes.**
Custom exception classes for the SAFE library
Contact : ole.moller.nielsen@gmail.com
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = 'tim@linfiniti.com'
__revision__ = '$Format:%H$'
__date__ = '17/06/2011'
__copyright__ = ('Copyright 2012, Australia Indonesia Facility for '
'Disaster Reduction')
[docs]class InaSAFEError(RuntimeError):
"""Base class for all user defined execptions"""
pass
[docs]class ReadLayerError(InaSAFEError):
"""When a layer can't be read"""
pass
[docs]class WriteLayerError(InaSAFEError):
"""When a layer can't be written"""
pass
[docs]class BoundingBoxError(InaSAFEError):
"""For errors relating to bboxes"""
pass
[docs]class VerificationError(InaSAFEError):
"""Exception thrown by verify()
"""
pass
[docs]class BoundsError(InaSAFEError):
"""For points falling outside interpolation grid"""
pass
[docs]class GetDataError(InaSAFEError):
"""When layer data cannot be obtained"""
pass
[docs]class PostProcessorError(Exception):
"""Raised when requested import cannot be performed if QGIS is too old."""
pass
[docs]class WindowsError(Exception):
"""For windows specific errors."""
pass