used FitsScaleError to catch the error
Created FitsScaleError class for catching error representing scale