errors
Class BadChildWidgetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by errors.GUIFileException
              extended by errors.BadChildWidgetException
All Implemented Interfaces:
Serializable

public class BadChildWidgetException
extends GUIFileException

BadChildWidgetException is thrown when there is an illegal child. Thrown by WidgetDefs.

See Also:
Serialized Form

Field Summary
 String childType
          The child widget in violation.
 Widget widget
          The parent widget for which the child widget is invalid.
 
Fields inherited from class errors.GUIFileException
lineNum
 
Constructor Summary
BadChildWidgetException(Widget widget)
          Report that a given widget cannot have any children.
BadChildWidgetException(Widget widget, String childType)
          Report an erroneus widget type for the child of a given widget.
BadChildWidgetException(Widget widget, Widget child)
          Report an erroneous child widget for a given widget.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

widget

public final Widget widget
The parent widget for which the child widget is invalid.


childType

public final String childType
The child widget in violation.

Constructor Detail

BadChildWidgetException

public BadChildWidgetException(Widget widget,
                               Widget child)
Report an erroneous child widget for a given widget.

Parameters:
widget - The parent widget.
child - The child widget in violation.

BadChildWidgetException

public BadChildWidgetException(Widget widget,
                               String childType)
Report an erroneus widget type for the child of a given widget.

Parameters:
widget - The parent widget.
childType - The type of the child widget in violation.

BadChildWidgetException

public BadChildWidgetException(Widget widget)
Report that a given widget cannot have any children.

Parameters:
widget - The parent widget.