Source code for medpy.core.exceptions

# Copyright (C) 2013 Oskar Maier
# 
# 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 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# author Oskar Maier
# version r0.2
# since 2011-12-11
# status Development

# build-in module

# third-party modules

# path changes

# own modules

# code
[docs]class ArgumentError(Exception): r"""Thrown by an application when an invalid command line argument has been supplied. """ pass
[docs]class FunctionError(Exception): r"""Thrown when a supplied function returns unexpected results. """ pass
[docs]class SubprocessError(Exception): r"""Thrown by an application when a subprocess execution failed. """ pass
[docs]class ImageTypeError(Exception): r"""Thrown when trying to load or save an image of unknown type. """ pass
[docs]class DependencyError(Exception): r"""Thrown when a required module could not be loaded. """ pass
[docs]class ImageLoadingError(Exception): r"""Thrown when a image could not be loaded. """ pass
[docs]class ImageSavingError(Exception): r"""Thrown when a image could not be saved. """ pass
[docs]class MetaDataError(Exception): r"""Thrown when an image meta data failure occurred. """ pass