Package org.scalafmt.interfaces
Class PositionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.scalafmt.interfaces.PositionException
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class PositionException extends java.lang.ExceptionAn exception that happened at a position in a source file such as a parse error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PositionException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Stringcode()abstract intendCharacter()abstract intendLine()abstract java.nio.file.Pathfile()java.lang.ThrowablefillInStackTrace()abstract java.lang.StringlongMessage()abstract java.lang.StringshortMessage()abstract intstartCharacter()abstract intstartLine()
-
-
-
Method Detail
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classjava.lang.Throwable
-
file
public abstract java.nio.file.Path file()
- Returns:
- The file where the error occurred.
-
code
public abstract java.lang.String code()
- Returns:
- The text contents of the file being formatted.
-
longMessage
public abstract java.lang.String longMessage()
- Returns:
- The fully formatted error message including line content and caret.
-
shortMessage
public abstract java.lang.String shortMessage()
- Returns:
- Only the error message itself without line content and caret.
-
startLine
public abstract int startLine()
-
startCharacter
public abstract int startCharacter()
-
endLine
public abstract int endLine()
-
endCharacter
public abstract int endCharacter()
-
-