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 SummaryFieldsModifier and TypeFieldDescriptionprotected StringThe error code.protected ElementThe element on which the error occured.protected intThe line number on which the error occured.protected StringThe message.protected GraphicsNodeThe graphics node that represents the current state of the GVT tree.protected Object[]The paramters to use for the error message.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a newBridgeExceptionbased on the specifiedLiveAttributeException.BridgeException(BridgeContext ctx, Element e, Exception ex, String code, Object[] params) Constructs a newBridgeExceptionwith the specified parameters.BridgeException(BridgeContext ctx, Element e, String message) Constructs a newBridgeExceptionwith the specified parameters.BridgeException(BridgeContext ctx, Element e, String code, Object[] params) Constructs a newBridgeExceptionwith the specified parameters.
- 
Method SummaryModifier 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.voidsetGraphicsNode(GraphicsNode node) Sets the graphics node that represents the current GVT tree built.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
eThe element on which the error occured.
- 
codeThe error code.
- 
messageThe message.
- 
paramsThe paramters to use for the error message.
- 
lineprotected int lineThe line number on which the error occured.
- 
nodeThe graphics node that represents the current state of the GVT tree.
 
- 
- 
Constructor Details- 
BridgeExceptionConstructs a newBridgeExceptionbased on the specifiedLiveAttributeException.- Parameters:
- ctx- the bridge context to use for determining the element's source position
- ex- the- LiveAttributeException
 
- 
BridgeExceptionConstructs a newBridgeExceptionwith the specified parameters.- Parameters:
- ctx- the bridge context to use for determining the element's source position
- e- the element on which the error occurred
- code- the error code
- params- the parameters to use for the error message
 
- 
BridgeExceptionConstructs a newBridgeExceptionwith the specified parameters.- Parameters:
- ctx- the bridge context to use for determining the element's source position
- e- the element on which the error occurred
- ex- the exception which was the root-cause for this exception
- code- the error code
- params- the parameters to use for the error message
 
- 
BridgeExceptionConstructs a newBridgeExceptionwith the specified parameters.- Parameters:
- ctx- the bridge context to use for determining the element's source position
- e- the element on which the error occurred
- message- the error message
 
 
- 
- 
Method Details- 
getElementReturns the element on which the error occurred.
- 
setGraphicsNodeSets the graphics node that represents the current GVT tree built.- Parameters:
- node- the graphics node
 
- 
getGraphicsNodeReturns the graphics node that represents the current GVT tree built.
- 
getMessageReturns the error message according to the error code and parameters.- Overrides:
- getMessagein class- Throwable
 
- 
getCodeReturns the exception's error code
 
-