Source code for dicom2nifti.exceptions

# -*- coding: utf-8 -*-
"""
dicom2nifti

@author: abrys
"""


[docs]class ConversionValidationError(Exception): """ Custom error type to distinguish between know validations and script errors """ def __init__(self, message): # Call the base class constructor with the parameters it needs super(ConversionValidationError, self).__init__(message)
[docs]class ConversionError(Exception): """ Custom error type to distinguish between know validations and script errors """ def __init__(self, message): # Call the base class constructor with the parameters it needs super(ConversionError, self).__init__(message)