org.eclipse.emf.ecore.xmi
Class XMIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.emf.ecore.xmi.XMIException
- All Implemented Interfaces:
- Resource.Diagnostic, Serializable
- Direct Known Subclasses:
- ClassNotFoundException, DanglingHREFException, FeatureNotFoundException, IllegalValueException, PackageNotFoundException, UnresolvedReferenceException
- public class XMIException
- extends Exception
- implements Resource.Diagnostic
- See Also:
- Serialized Form
Constructor Summary |
XMIException(Exception exception)
|
XMIException(Exception exception,
String location,
int line,
int column)
|
XMIException(String message)
|
XMIException(String message,
Exception exception)
|
XMIException(String message,
Exception exception,
String location,
int line,
int column)
|
XMIException(String message,
String location,
int line,
int column)
|
location
protected String location
line
protected int line
column
protected int column
exception
protected Exception exception
XMIException
public XMIException(String message)
XMIException
public XMIException(Exception exception)
XMIException
public XMIException(String message,
Exception exception)
XMIException
public XMIException(String message,
String location,
int line,
int column)
XMIException
public XMIException(String message,
Exception exception,
String location,
int line,
int column)
XMIException
public XMIException(Exception exception,
String location,
int line,
int column)
getMessage
public String getMessage()
- Description copied from interface:
Resource.Diagnostic
- Returns a translated message describing the issue.
- Specified by:
getMessage
in interface Resource.Diagnostic
getLocation
public String getLocation()
- Description copied from interface:
Resource.Diagnostic
- Returns the source location of the issue.
This will typically be just the
URI
of the resource containing this diagnostic.
- Specified by:
getLocation
in interface Resource.Diagnostic
- Returns:
- the location of the issue.
getLine
public int getLine()
- Description copied from interface:
Resource.Diagnostic
- Returns the line location of the issue within the source.
Line
1
is the first line.
- Specified by:
getLine
in interface Resource.Diagnostic
- Returns:
- the line location of the issue.
getColumn
public int getColumn()
- Description copied from interface:
Resource.Diagnostic
- Returns the column location of the issue within the source.
Column
1
is the first column.
- Specified by:
getColumn
in interface Resource.Diagnostic
- Returns:
- the column location of the issue.
getWrappedException
public Exception getWrappedException()
printStackTrace
public void printStackTrace()
printStackTrace
public void printStackTrace(PrintStream printStream)
printStackTrace
public void printStackTrace(PrintWriter printWriter)