Class TokenizerException

  • All Implemented Interfaces:
    java.io.Serializable, net.morimekta.util.Stringable

    public class TokenizerException
    extends SerializerException
    Exception when totalizing fails to make token or read the expected content.
    See Also:
    Serialized Form
    • Constructor Detail

      • TokenizerException

        public TokenizerException​(TokenizerException e,
                                  java.io.File file)
      • TokenizerException

        public TokenizerException​(java.lang.String format,
                                  java.lang.Object... args)
      • TokenizerException

        public TokenizerException​(java.lang.Throwable cause,
                                  java.lang.String format,
                                  java.lang.Object... args)
      • TokenizerException

        public TokenizerException​(Token token,
                                  java.lang.String format,
                                  java.lang.Object... args)
    • Method Detail

      • getLineNo

        public int getLineNo()
        Returns:
        The 1-indexed line number of the fault.
      • getLinePos

        public int getLinePos()
        Returns:
        The 1-indexed position on the given line.
      • getLength

        public int getLength()
        Returns:
        The number of u16 chars representing the fault.
      • getLine

        public java.lang.String getLine()
        Returns:
        The whole line of the fault, not including line feed.
      • getFile

        public java.lang.String getFile()
        Returns:
        The file that contains the fault.
      • initCause

        public TokenizerException initCause​(java.lang.Throwable cause)
        Overrides:
        initCause in class java.lang.Throwable
      • asString

        public java.lang.String asString()
        Specified by:
        asString in interface net.morimekta.util.Stringable
        Overrides:
        asString in class SerializerException