jsky.science
Class WavelengthNotInPassbandException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jsky.science.WavelengthNotInPassbandException
- All Implemented Interfaces:
- java.io.Serializable
public class WavelengthNotInPassbandException
- extends java.lang.Exception
The WavelengthNotInPassbandException may be thrown by an exposure when
determines that the target wavelength for spectroscopy is not within
the range of the selected grating.
This exception also contains a showErrorMessageDialog that will prompt
the user for a valid wavelength and return that wavelength to the calling
method
This code was developed by NASA, Goddard Space Flight Center, Code 588
for the Scientist's Expert Assistant (SEA) project for Next Generation
Space Telescope (NGST).
- Version:
- Jan 27, 1999
- Author:
- Sandy Grosvenor
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WavelengthNotInPassbandException
public WavelengthNotInPassbandException(Passband inBand,
Wavelength inWL)
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
showErrorMessageDialog
public void showErrorMessageDialog(java.awt.Component parent)
getWavelength
public Wavelength getWavelength()