java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.sf.carte.echosvg.bridge.BridgeException
- All Implemented Interfaces:
Serializable
Thrown when the bridge has detected an error.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The error code.protected Element
The element on which the error occured.protected int
The line number on which the error occured.protected String
The message.protected GraphicsNode
The graphics node that represents the current state of the GVT tree.protected Object[]
The paramters to use for the error message. -
Constructor Summary
ConstructorDescriptionConstructs a newBridgeException
based on the specifiedLiveAttributeException
.BridgeException
(BridgeContext ctx, Element e, Exception ex, String code, Object[] params) Constructs a newBridgeException
with the specified parameters.BridgeException
(BridgeContext ctx, Element e, String message) Constructs a newBridgeException
with the specified parameters.BridgeException
(BridgeContext ctx, Element e, String code, Object[] params) Constructs a newBridgeException
with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Returns the exception's error codeReturns the element on which the error occurred.Returns the graphics node that represents the current GVT tree built.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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
e
The element on which the error occured. -
code
The error code. -
message
The message. -
params
The paramters to use for the error message. -
line
protected int lineThe line number on which the error occured. -
node
The graphics node that represents the current state of the GVT tree.
-
-
Constructor Details
-
BridgeException
Constructs a newBridgeException
based on the specifiedLiveAttributeException
.- Parameters:
ctx
- the bridge context to use for determining the element's source positionex
- theLiveAttributeException
-
BridgeException
Constructs a newBridgeException
with the specified parameters.- 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 message
-
BridgeException
Constructs a newBridgeException
with the specified parameters.- 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 message
-
BridgeException
Constructs a newBridgeException
with the specified parameters.- Parameters:
ctx
- the bridge context to use for determining the element's source positione
- the element on which the error occurredmessage
- the error message
-
-
Method Details
-
getElement
Returns the element on which the error occurred. -
setGraphicsNode
Sets the graphics node that represents the current GVT tree built.- Parameters:
node
- the graphics node
-
getGraphicsNode
Returns the graphics node that represents the current GVT tree built. -
getMessage
Returns the error message according to the error code and parameters.- Overrides:
getMessage
in classThrowable
-
getCode
Returns the exception's error code
-