|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.io.IOException | +--org.eclipse.emf.ecore.resource.Resource.IOWrappedException
An IO exception that wraps another exception.
Since save and load throw an IO Exception, it may be convenient for an implementation to wrap another exception in order to throw it as an IO exception.
Field Summary | |
---|---|
protected java.lang.Exception |
exception
The wrapped exception. |
Constructor Summary | |
---|---|
Resource.IOWrappedException(java.lang.Exception exception)
Creates an instance which wraps the given exception. |
Method Summary | |
---|---|
java.lang.String |
getLocalizedMessage()
Returns the localized message of the wrapped exception. |
java.lang.String |
getMessage()
Returns the message of the wrapped exception. |
java.lang.Exception |
getWrappedException()
Returns the wrapped exception. |
void |
printStackTrace()
Prints the stack trace of the wrapped exception. |
void |
printStackTrace(java.io.PrintStream printStream)
Prints the stack trace of the wrapped exception. |
void |
printStackTrace(java.io.PrintWriter printWriter)
Prints the stack trace of the wrapped exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Exception exception
Constructor Detail |
public Resource.IOWrappedException(java.lang.Exception exception)
exception
- the exception to wrap.Method Detail |
public java.lang.Exception getWrappedException()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream printStream)
printStackTrace
in class java.lang.Throwable
printStream
- the stream to print to.public void printStackTrace(java.io.PrintWriter printWriter)
printStackTrace
in class java.lang.Throwable
printWriter
- the writer to print to.
|
Copyright 2001-2003 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |