public class XMIException extends java.lang.Exception implements Resource.Diagnostic
| Modifier and Type | Field and Description |
|---|---|
protected int |
column |
protected int |
line |
protected java.lang.String |
location |
| Constructor and Description |
|---|
XMIException(java.lang.Exception exception) |
XMIException(java.lang.Exception exception,
java.lang.String location,
int line,
int column) |
XMIException(java.lang.String message) |
XMIException(java.lang.String message,
java.lang.Exception exception) |
XMIException(java.lang.String message,
java.lang.Exception exception,
java.lang.String location,
int line,
int column) |
XMIException(java.lang.String message,
java.lang.String location,
int line,
int column) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Returns the column location of the issue within the source.
|
int |
getLine()
Returns the line location of the issue within the source.
|
java.lang.String |
getLocation()
Returns the source location of the issue.
|
java.lang.String |
getMessage()
Returns a translated message describing the issue.
|
java.lang.Exception |
getWrappedException()
Deprecated.
in 2.2. Use
Throwable.getCause() instead. Given that
the constructors of this class take Exceptions as arguments, it is
save to do this cast (Exception)getCause(). |
protected java.lang.String location
protected int line
protected int column
public XMIException(java.lang.String message)
public XMIException(java.lang.Exception exception)
public XMIException(java.lang.String message,
java.lang.Exception exception)
public XMIException(java.lang.String message,
java.lang.String location,
int line,
int column)
public XMIException(java.lang.String message,
java.lang.Exception exception,
java.lang.String location,
int line,
int column)
public XMIException(java.lang.Exception exception,
java.lang.String location,
int line,
int column)
public java.lang.String getMessage()
Resource.DiagnosticgetMessage in interface Resource.DiagnosticgetMessage in class java.lang.Throwablepublic java.lang.String getLocation()
Resource.DiagnosticURI of the resource containing this diagnostic.getLocation in interface Resource.Diagnosticnull if it's unknown.public int getLine()
Resource.Diagnostic1 is the first line.getLine in interface Resource.Diagnosticpublic int getColumn()
Resource.Diagnostic1 is the first column.getColumn in interface Resource.Diagnostic@Deprecated public java.lang.Exception getWrappedException()
Throwable.getCause() instead. Given that
the constructors of this class take Exceptions as arguments, it is
save to do this cast (Exception)getCause().