Source code for pyiem.exceptions
"""Custom Exceptions."""
[docs]
class BadWebRequest(Exception):
"""Raised when a bad web request is made."""
[docs]
class CLIException(Exception):
"""Custom Exception for CLI Parsing Issues"""
[docs]
class HWOException(Exception):
"""Exception for HWO Parsing."""
[docs]
class IncompleteWebRequest(Exception):
"""Raised for a HTTP GET request without required params (422)."""
[docs]
class InvalidArguments(Exception):
"""Provided method arguments were not valid (invalid units)."""
[docs]
class InvalidPolygon(Exception):
"""Parsing of polygon raised a known error condition."""
[docs]
class InvalidSHEFEncoding(Exception):
"""Product is not encoded to SHEF standard specification."""
[docs]
class InvalidSHEFValue(Exception):
"""SHEF element value fails to be processed to a float."""
[docs]
class MCDException(Exception):
"""Exception"""
[docs]
class NHCException(Exception):
"""Exception"""
[docs]
class NewDatabaseConnectionFailure(Exception):
"""Exception for when a new database connection fails."""
[docs]
class NoDataFound(Exception):
"""Exception for when no data was found for request."""
[docs]
class SAWException(Exception):
"""Custom local exception"""
[docs]
class SIGMETException(Exception):
"""Custom SIGMET Parsing Exception."""
[docs]
class TextProductException(Exception):
"""Exception for Text Parsing."""
[docs]
class UGCParseException(Exception):
"""Custom Exception this parser can raise"""
[docs]
class UnitsError(Exception):
"""Exception for bad Units."""
[docs]
class UnknownStationException(Exception):
"""Exception for unknown station."""