jsky.science
Class WavelengthNotInPassbandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
WavelengthNotInPassbandException(Passband inBand, Wavelength inWL)
           
 
Method Summary
 java.lang.String getMessage()
           
 Wavelength getWavelength()
           
 void showErrorMessageDialog(java.awt.Component parent)
           
 
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
 

Constructor Detail

WavelengthNotInPassbandException

public WavelengthNotInPassbandException(Passband inBand,
                                        Wavelength inWL)
Method Detail

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()