public class BridgeException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected java.lang.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 java.lang.String |
message
The message.
|
protected GraphicsNode |
node
The graphics node that represents the current state of the GVT tree.
|
protected java.lang.Object[] |
params
The paramters to use for the error message.
|
Constructor and Description |
---|
BridgeException(BridgeContext ctx,
Element e,
java.lang.Exception ex,
java.lang.String code,
java.lang.Object[] params)
Constructs a new
BridgeException with the specified parameters. |
BridgeException(BridgeContext ctx,
Element e,
java.lang.String message)
Constructs a new
BridgeException with the specified parameters. |
BridgeException(BridgeContext ctx,
Element e,
java.lang.String code,
java.lang.Object[] params)
Constructs a new
BridgeException with the specified parameters. |
BridgeException(BridgeContext ctx,
LiveAttributeException ex)
Constructs a new
BridgeException based on the specified
LiveAttributeException . |
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
java.lang.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.
|
protected Element e
protected java.lang.String code
protected java.lang.String message
protected java.lang.Object[] params
protected int line
protected GraphicsNode node
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, java.lang.String code, java.lang.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, java.lang.Exception ex, java.lang.String code, java.lang.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, java.lang.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 messagepublic Element getElement()
public void setGraphicsNode(GraphicsNode node)
node
- the graphics nodepublic GraphicsNode getGraphicsNode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getCode()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.