Package nom.tam.fits
Class FitsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
nom.tam.fits.FitsException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FitsIntegrityException
,HeaderCardException
,PaddingException
,TableException
,TruncatedFileException
When we cannot deal with some FITS data as expected. Originally it was a hard
exception, that you had no choice by to catch. Since 1.19, it has been
demoted to a softer, runtime exception. This is a back compatible change,
which gives more freedom to programmers on dealing with these (or not).
- See Also:
-
Constructor Summary
ConstructorDescriptionFitsException
(String msg) Instantiates this exception with the designated message string.FitsException
(String msg, Throwable reason) Instantiates this exception with the designated message string, when it was triggered by some other type of exception -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FitsException
Instantiates this exception with the designated message string.- Parameters:
msg
- a human readable message that describes what in fact caused the exception
-
FitsException
Instantiates this exception with the designated message string, when it was triggered by some other type of exception- Parameters:
msg
- a human readable message that describes what in fact caused the exceptionreason
- the original exception (or other throwable) that triggered this exception.
-