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 Exception s 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.Diagnostic
getMessage
in interface Resource.Diagnostic
getMessage
in class java.lang.Throwable
public java.lang.String getLocation()
Resource.Diagnostic
URI
of the resource containing this diagnostic.getLocation
in interface Resource.Diagnostic
null
if it's unknown.public int getLine()
Resource.Diagnostic
1
is the first line.getLine
in interface Resource.Diagnostic
public int getColumn()
Resource.Diagnostic
1
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 Exception
s as arguments, it is
save to do this cast (Exception)getCause().