Package org.eclipse.xtext.diagnostics
Class ExceptionDiagnostic
- java.lang.Object
-
- org.eclipse.xtext.diagnostics.ExceptionDiagnostic
-
- All Implemented Interfaces:
org.eclipse.emf.ecore.resource.Resource.Diagnostic
,Diagnostic
public class ExceptionDiagnostic extends java.lang.Object implements Diagnostic
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.diagnostics.Diagnostic
LINKING_DIAGNOSTIC, SYNTAX_DIAGNOSITC, SYNTAX_DIAGNOSTIC, SYNTAX_DIAGNOSTIC_WITH_RANGE
-
-
Constructor Summary
Constructors Constructor Description ExceptionDiagnostic(java.lang.Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
int
getColumnEnd()
Returns the end column location of the issue within the source.java.lang.Exception
getException()
int
getLength()
Returns the length of this diagnostic.int
getLine()
int
getLineEnd()
Returns the end line location of the issue within the source.java.lang.String
getLocation()
java.lang.String
getMessage()
int
getOffset()
Returns the offset of this diagnostic.java.lang.String
toString()
-
-
-
Method Detail
-
getLength
public int getLength()
Description copied from interface:Diagnostic
Returns the length of this diagnostic.- Specified by:
getLength
in interfaceDiagnostic
- Returns:
- the length of this diagnostic.
-
getOffset
public int getOffset()
Description copied from interface:Diagnostic
Returns the offset of this diagnostic.- Specified by:
getOffset
in interfaceDiagnostic
- Returns:
- the offset of this diagnostic.
-
getColumn
public int getColumn()
- Specified by:
getColumn
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getLine
public int getLine()
- Specified by:
getLine
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getColumnEnd
public int getColumnEnd()
Description copied from interface:Diagnostic
Returns the end column location of the issue within the source. The region does not include the end column character itself. Column1
is the first column of a line.- Specified by:
getColumnEnd
in interfaceDiagnostic
- Returns:
- the end column location of the issue.
-
getLineEnd
public int getLineEnd()
Description copied from interface:Diagnostic
Returns the end line location of the issue within the source. Line1
is the first line of a document.- Specified by:
getLineEnd
in interfaceDiagnostic
- Returns:
- the end line location of the issue.
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interfaceorg.eclipse.emf.ecore.resource.Resource.Diagnostic
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getException
public java.lang.Exception getException()
-
-