Class ThriftException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- net.morimekta.util.lexer.LexerException
-
- net.morimekta.providence.reflect.parser.ThriftException
-
- All Implemented Interfaces:
java.io.Serializable,net.morimekta.util.Displayable
public class ThriftException extends net.morimekta.util.lexer.LexerExceptionToken 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.StringgetError()java.lang.StringgetFile()ThriftExceptioninitCause(java.lang.Throwable cause)ThriftExceptionsetFile(java.lang.String file)java.lang.StringtoString()-
Methods inherited from class net.morimekta.util.lexer.LexerException
displayString, getLength, getLine, getLineNo, getLinePos, replaceNonPrintable
-
-
-
-
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:
initCausein classnet.morimekta.util.lexer.LexerException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classnet.morimekta.util.lexer.LexerException
-
getError
protected java.lang.String getError()
- Overrides:
getErrorin classnet.morimekta.util.lexer.LexerException
-
-