Source code for mwr_l12l2.errors

[docs]class MWRError(Exception): """Base exception for MWR"""
###############################
[docs]class MWRFileError(MWRError): """Base exception for problems with files used in mwr_l12l2"""
[docs]class MWRInputError(MWRError): """Base exception for calling of MWR functions"""
[docs]class MWRDataError(MWRError): """Raised if something with the input data goes wrong"""
[docs]class MWRRetrievalError(MWRError): """Raised if something with the TROPoe retrieval failed"""
[docs]class MWROutputError(MWRError): """Raised when something with the output file goes wrong"""
[docs]class MWRConfigError(MWRError): """Raised if something with the configuration file is wrong"""
[docs]class MWRTestError(MWRError): """Raised if something goes wrong during set up or clean up of testing"""
###############################
[docs]class MissingConfig(MWRConfigError): """Raised if a mandatory entry of the config file is missing"""
###############################
[docs]class MissingDataError(MWRDataError): """Raised if some expected data is not present"""
###############################
[docs]class FilenameError(MWRFileError): """Raised if the filename does not correspond to the expected pattern"""
##############################
[docs]class OutputDimensionError(MWROutputError): """Raised if requested output dimensions do not match data"""