Package net.sf.jguiraffe.gui.builder
Class BuilderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.jguiraffe.gui.builder.BuilderException
-
- All Implemented Interfaces:
Serializable
public class BuilderException extends Exception
An exception class for reporting error conditions related to the GUI builder.
As an additional property this exception class stores the URL of the script that caused the error.
- Version:
- $Id: BuilderException.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuilderException(String msg)
Creates a new instance ofBuilderException
and sets the error message.BuilderException(URL script, String msg, Throwable cause)
Creates a new instance ofBuilderException
and sets the script URL, the root cause, and an additional message.BuilderException(URL script, Throwable cause)
Creates a new instance ofBuilderException
and sets the script URL and the root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getScriptURL()
Returns the URL of the failing script.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BuilderException
public BuilderException(String msg)
Creates a new instance ofBuilderException
and sets the error message.- Parameters:
msg
- the error message
-
BuilderException
public BuilderException(URL script, Throwable cause)
Creates a new instance ofBuilderException
and sets the script URL and the root cause.- Parameters:
script
- the URL of the scriptcause
- the root cause
-
-
Method Detail
-
getScriptURL
public URL getScriptURL()
Returns the URL of the failing script.- Returns:
- the URL of the script
-
-