Package org.apache.batik.anim
Class AnimationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.batik.anim.AnimationException
-
- All Implemented Interfaces:
java.io.Serializable
public class AnimationException extends java.lang.RuntimeExceptionAn exception class for SMIL animation exceptions.- Version:
- $Id: AnimationException.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcodeThe error code.protected TimedElementeThe timed element on which the error occurred.protected java.lang.StringmessageThe message.protected java.lang.Object[]paramsThe parameters to use for the error message.
-
Constructor Summary
Constructors Constructor Description AnimationException(TimedElement e, java.lang.String code, java.lang.Object[] params)Creates a new AnimationException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Returns the error code.TimedElementgetElement()Returns the timed element that caused this animation exception.java.lang.StringgetMessage()Returns the error message according to the error code and parameters.java.lang.Object[]getParams()Returns the error message parameters.
-
-
-
Field Detail
-
e
protected TimedElement e
The timed element on which the error occurred.
-
code
protected java.lang.String code
The error code.
-
params
protected java.lang.Object[] params
The parameters to use for the error message.
-
message
protected java.lang.String message
The message.
-
-
Constructor Detail
-
AnimationException
public AnimationException(TimedElement e, java.lang.String code, java.lang.Object[] params)
Creates a new AnimationException.- Parameters:
e- the animation element on which the error occurredcode- the error codeparams- the parameters to use for the error message
-
-
Method Detail
-
getElement
public TimedElement getElement()
Returns the timed element that caused this animation exception.
-
getCode
public java.lang.String getCode()
Returns the error code.
-
getParams
public java.lang.Object[] getParams()
Returns the error message parameters.
-
getMessage
public java.lang.String getMessage()
Returns the error message according to the error code and parameters.- Overrides:
getMessagein classjava.lang.Throwable
-
-