Class ErrorWithSourceSpan
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.torqlang.util.ErrorWithSourceSpan
- All Implemented Interfaces:
Serializable,SourceSpanProvider
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionErrorWithSourceSpan(String message) ErrorWithSourceSpan(String message, Throwable cause) ErrorWithSourceSpan(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringformatWithSource(int lineNrWidth, int showBefore, int showAfter) final voidstatic <T extends Exception>
voidprintWithSourceAndRethrow(T exc, int lineNrWidth, int showBefore, int showAfter) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.torqlang.util.SourceSpanProvider
sourceSpan
-
Constructor Details
-
ErrorWithSourceSpan
public ErrorWithSourceSpan() -
ErrorWithSourceSpan
-
ErrorWithSourceSpan
-
ErrorWithSourceSpan
-
-
Method Details
-
printWithSourceAndRethrow
-
formatWithSource
-
printError
public final void printError()
-