Added exceptions for FITS base classes