com.brunchboy.util.swing.relativelayout
Class XmlConstraintBuilder.ParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder.ParseException
All Implemented Interfaces:
Serializable
Enclosing class:
XmlConstraintBuilder

public static class XmlConstraintBuilder.ParseException
extends Exception

An exception subclass with which we'll wrap any exceptions thrown in parsing the constraints specifications, to shield our clients from details about the libraries we use, unless they want to know about them.

See Also:
Serialized Form

Field Summary
protected  Throwable cause
          Keeps track of the underlying cause, if any.
 
Constructor Summary
XmlConstraintBuilder.ParseException(String message, Throwable cause)
          Record the message and cause of a parse exception.
 
Method Summary
 Throwable getCause()
          Returns the underlying cause of this exception, or null if there was none.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

cause

protected Throwable cause
Keeps track of the underlying cause, if any.

Constructor Detail

XmlConstraintBuilder.ParseException

public XmlConstraintBuilder.ParseException(String message,
                                           Throwable cause)
Record the message and cause of a parse exception.

Parameters:
message - a brief description of the problem.
cause - the underlying problem that led to this one, if any.
Method Detail

getCause

public Throwable getCause()
Returns the underlying cause of this exception, or null if there was none.

Overrides:
getCause in class Throwable
Returns:
the problem that led to this exception, if any.