org.eclipse.emf.ecore.xmi
Class XMIException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.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

Field Summary
protected  int column
           
protected  int line
           
protected  String location
           
 
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)
           
 
Method Summary
 int getColumn()
          Returns the column location of the issue within the source.
 int getLine()
          Returns the line location of the issue within the source.
 String getLocation()
          Returns the source location of the issue.
 String getMessage()
          Returns a translated message describing the issue.
 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()
.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

location

protected String location

line

protected int line

column

protected int column
Constructor Detail

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)
Method Detail

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()
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()
.


Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.