org.eclipse.xtext.diagnostics
Class ExceptionDiagnostic

java.lang.Object
  extended by 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

Author:
Sebastian Zarnekow - Initial contribution and API

Field Summary
 
Fields inherited from interface org.eclipse.xtext.diagnostics.Diagnostic
LINKING_DIAGNOSTIC, SYNTAX_DIAGNOSITC, SYNTAX_DIAGNOSTIC
 
Constructor Summary
ExceptionDiagnostic(java.lang.Exception exception)
           
 
Method Summary
 int getColumn()
           
 java.lang.Exception getException()
           
 int getLength()
          Returns the length of this diagnostic.
 int getLine()
           
 java.lang.String getLocation()
           
 java.lang.String getMessage()
           
 int getOffset()
          Returns the offset of this diagnostic.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionDiagnostic

public ExceptionDiagnostic(java.lang.Exception exception)
Method Detail

getLength

public int getLength()
Description copied from interface: Diagnostic
Returns the length of this diagnostic.

Specified by:
getLength in interface Diagnostic
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 interface Diagnostic
Returns:
the offset of this diagnostic.

getColumn

public int getColumn()
Specified by:
getColumn in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic

getLine

public int getLine()
Specified by:
getLine in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic

getLocation

public java.lang.String getLocation()
Specified by:
getLocation in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface org.eclipse.emf.ecore.resource.Resource.Diagnostic

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getException

public java.lang.Exception getException()