Class ThriftException

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

    public class ThriftException
    extends net.morimekta.util.lexer.LexerException
    Token specialization for the thrift parser and tokenizer.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ThriftException​(java.lang.String message, java.lang.Object... params)  
      ThriftException​(java.lang.Throwable cause, java.lang.String message, java.lang.Object... params)  
      ThriftException​(ThriftToken token, java.lang.String message, java.lang.Object... params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getError()  
      java.lang.String getFile()  
      ThriftException initCause​(java.lang.Throwable cause)  
      ThriftException setFile​(java.lang.String file)  
      java.lang.String toString()  
      • Methods inherited from class net.morimekta.util.lexer.LexerException

        displayString, getLength, getLine, getLineNo, getLinePos, replaceNonPrintable
      • Methods inherited from class java.lang.Throwable

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

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

      • ThriftException

        public ThriftException​(java.lang.String message,
                               java.lang.Object... params)
      • ThriftException

        public ThriftException​(java.lang.Throwable cause,
                               java.lang.String message,
                               java.lang.Object... params)
      • ThriftException

        public ThriftException​(ThriftToken token,
                               java.lang.String message,
                               java.lang.Object... params)
    • Method Detail

      • getFile

        @Nullable
        public java.lang.String getFile()
      • setFile

        @Nonnull
        public ThriftException setFile​(java.lang.String file)
      • initCause

        @Nonnull
        public ThriftException initCause​(java.lang.Throwable cause)
        Overrides:
        initCause in class net.morimekta.util.lexer.LexerException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class net.morimekta.util.lexer.LexerException
      • getError

        protected java.lang.String getError()
        Overrides:
        getError in class net.morimekta.util.lexer.LexerException