|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.batik.bridge.BridgeException
public class BridgeException
Thrown when the bridge has detected an error.
Field Summary | |
---|---|
protected String |
code
The error code. |
protected Element |
e
The element on which the error occured. |
protected int |
line
The line number on which the error occured. |
protected String |
message
The message. |
protected GraphicsNode |
node
The graphics node that represents the current state of the GVT tree. |
protected Object[] |
params
The paramters to use for the error message. |
Constructor Summary | |
---|---|
BridgeException(BridgeContext ctx,
Element e,
Exception ex,
String code,
Object[] params)
Constructs a new BridgeException with the specified parameters. |
|
BridgeException(BridgeContext ctx,
Element e,
String message)
Constructs a new BridgeException with the specified parameters. |
|
BridgeException(BridgeContext ctx,
Element e,
String code,
Object[] params)
Constructs a new BridgeException with the specified parameters. |
|
BridgeException(BridgeContext ctx,
LiveAttributeException ex)
Constructs a new BridgeException based on the specified
LiveAttributeException . |
Method Summary | |
---|---|
String |
getCode()
Returns the exception's error code |
Element |
getElement()
Returns the element on which the error occurred. |
GraphicsNode |
getGraphicsNode()
Returns the graphics node that represents the current GVT tree built. |
String |
getMessage()
Returns the error message according to the error code and parameters. |
void |
setGraphicsNode(GraphicsNode node)
Sets the graphics node that represents the current GVT tree built. |
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 |
Field Detail |
---|
protected Element e
protected String code
protected String message
protected Object[] params
protected int line
protected GraphicsNode node
Constructor Detail |
---|
public BridgeException(BridgeContext ctx, LiveAttributeException ex)
BridgeException
based on the specified
LiveAttributeException
.
ctx
- the bridge context to use for determining the element's
source positionex
- the LiveAttributeException
public BridgeException(BridgeContext ctx, Element e, String code, Object[] params)
BridgeException
with the specified parameters.
ctx
- the bridge context to use for determining the element's
source positione
- the element on which the error occurredcode
- the error codeparams
- the parameters to use for the error messagepublic BridgeException(BridgeContext ctx, Element e, Exception ex, String code, Object[] params)
BridgeException
with the specified parameters.
ctx
- the bridge context to use for determining the element's
source positione
- the element on which the error occurredex
- the exception which was the root-cause for this exceptioncode
- the error codeparams
- the parameters to use for the error messagepublic BridgeException(BridgeContext ctx, Element e, String message)
BridgeException
with the specified parameters.
ctx
- the bridge context to use for determining the element's
source positione
- the element on which the error occurredmessage
- the error messageMethod Detail |
---|
public Element getElement()
public void setGraphicsNode(GraphicsNode node)
node
- the graphics nodepublic GraphicsNode getGraphicsNode()
public String getMessage()
getMessage
in class Throwable
public String getCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |