Class ErrorWithSourceSpan

All Implemented Interfaces:
Serializable, SourceSpanProvider

public abstract class ErrorWithSourceSpan extends RuntimeException implements SourceSpanProvider
See Also:
  • Constructor Details

    • ErrorWithSourceSpan

      public ErrorWithSourceSpan()
    • ErrorWithSourceSpan

      public ErrorWithSourceSpan(String message)
    • ErrorWithSourceSpan

      public ErrorWithSourceSpan(String message, Throwable cause)
    • ErrorWithSourceSpan

      public ErrorWithSourceSpan(Throwable cause)
  • Method Details

    • printWithSourceAndRethrow

      public static <T extends Exception> void printWithSourceAndRethrow(T exc, int lineNrWidth, int showBefore, int showAfter) throws Exception
      Throws:
      Exception
    • formatWithSource

      public final String formatWithSource(int lineNrWidth, int showBefore, int showAfter)
    • printError

      public final void printError()