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.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
-
-
-
-
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 classnet.morimekta.util.lexer.LexerException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classnet.morimekta.util.lexer.LexerException
-
getError
protected java.lang.String getError()
- Overrides:
getError
in classnet.morimekta.util.lexer.LexerException
-
-