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, java.io.Serializable
Direct Known Subclasses:
ClassNotFoundException, DanglingHREFException, FeatureNotFoundException, IllegalValueException, PackageNotFoundException, UnresolvedReferenceException

public class XMIException
extends java.lang.Exception
implements Resource.Diagnostic

See Also:
Serialized Form

Field Summary
protected  int column
           
protected  java.lang.Exception exception
           
protected  int line
           
protected  java.lang.String location
           
 
Constructor Summary
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)
           
 
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.
 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()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream printStream)
           
 void printStackTrace(java.io.PrintWriter printWriter)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

location

protected java.lang.String location

line

protected int line

column

protected int column

exception

protected java.lang.Exception exception
Constructor Detail

XMIException

public XMIException(java.lang.String message)

XMIException

public XMIException(java.lang.Exception exception)

XMIException

public XMIException(java.lang.String message,
                    java.lang.Exception exception)

XMIException

public XMIException(java.lang.String message,
                    java.lang.String location,
                    int line,
                    int column)

XMIException

public XMIException(java.lang.String message,
                    java.lang.Exception exception,
                    java.lang.String location,
                    int line,
                    int column)

XMIException

public XMIException(java.lang.Exception exception,
                    java.lang.String location,
                    int line,
                    int column)
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from interface: Resource.Diagnostic
Returns a translated message describing the issue.
Specified by:
getMessage in interface Resource.Diagnostic
Overrides:
getMessage in class java.lang.Throwable
Following copied from interface: org.eclipse.emf.ecore.resource.Resource.Diagnostic
Returns:
a translated message.

getLocation

public java.lang.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
Following copied from interface: org.eclipse.emf.ecore.resource.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
Following copied from interface: org.eclipse.emf.ecore.resource.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
Following copied from interface: org.eclipse.emf.ecore.resource.Resource.Diagnostic
Returns:
the column location of the issue.

getWrappedException

public java.lang.Exception getWrappedException()

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream printStream)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter printWriter)
Overrides:
printStackTrace in class java.lang.Throwable

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