Class AnimationParseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AnimationParseException
    extends java.lang.Exception
    This exception is thrown when parsing an animation definition file ( arch/animations and arch/**.anim) revealed that such a file contains an error. In future, it might as well be used if a user defines or changes an animation.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AnimationParseException​(@NotNull java.lang.String expected, @NotNull java.lang.String actual, int lineNumber)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLineNumber()
      Returns the number of the erroneous line.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AnimationParseException

        public AnimationParseException​(@NotNull
                                       @NotNull java.lang.String expected,
                                       @NotNull
                                       @NotNull java.lang.String actual,
                                       int lineNumber)
        Creates a new instance.
        Parameters:
        expected - expected parse element
        actual - actual parse element that gave the error
        lineNumber - number of erroneous line
    • Method Detail

      • getLineNumber

        public int getLineNumber()
        Returns the number of the erroneous line.
        Returns:
        number of erroneous line