|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException net.sf.sevenzipjbinding.SevenZipException
public class SevenZipException
SevenZip core exception. This exception supports multiple 'cause by' exceptions. Use
printStackTraceExtended()
to get stack traces of all available 'cause by's. Multiple 'cause by' can occur,
if native code is involved. If in one of the call-back java methods an exception will be thrown, the native code will
save this exception and may proceed with the next call-back java method, which can throw a further exception as well.
After native code completes, a new SevenZipException will be thrown. This exception will have multiple 'cause by'
exceptions attached:
SevenZipException
. In order to
improve readability of the long extended stack traces, the origin of the current exception being printed can be read
vertically on the left of the stack trace. The standard Throwable.printStackTrace()
method prints only the stack trace
of the first 'cause by' exception.
printStackTraceExtended()
,
printStackTraceExtended(PrintStream)
,
printStackTraceExtended(PrintWriter)
,
Serialized FormConstructor Summary | |
---|---|
SevenZipException()
Constructs a new exception with null as its detail message. |
|
SevenZipException(java.lang.String message)
Constructs a new exception with the specified detail message. |
|
SevenZipException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
SevenZipException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Get first thrown exception as a cause for this exception. |
java.lang.Throwable |
getCauseFirstPotentialThrown()
Get the first thrown exception that was the potential cause for this exception. |
java.lang.Throwable |
getCauseLastPotentialThrown()
Get the last thrown exception that was the potential cause for this exception. |
java.lang.Throwable |
getCauseLastThrown()
Get last thrown exception as a cause for this exception. |
java.lang.String |
getMessage()
|
java.lang.String |
getSevenZipExceptionMessage()
Get 7-Zip-JBinding exception original error message (without 'cause by' messages) |
void |
printStackTraceExtended()
Prints stack traces of this SevenZipException and of the all thrown 'cause by' exceptions to the specified system error stream System.err . |
void |
printStackTraceExtended(java.io.PrintStream printStream)
Prints stack trace of this SevenZipException and of the all thrown 'cause by' exceptions to the specified print stream. |
void |
printStackTraceExtended(java.io.PrintWriter printWriter)
Prints stack trace of this SevenZipException and of the all thrown 'cause by' exceptions to the specified print writer. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SevenZipException()
null
as its detail message. The cause is not initialized, and may
subsequently be initialized by a call to Throwable.initCause(Throwable)
.
public SevenZipException(java.lang.String message, java.lang.Throwable cause)
Note that the detail message associated with cause
is not automatically incorporated in this
exception's detail message.
message
- the detail message (which is saved for later retrieval by the getMessage()
method).cause
- the cause (which is saved for later retrieval by the getCause()
method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)public SevenZipException(java.lang.String message)
Throwable.initCause(Throwable)
.
message
- the detail message. The detail message is saved for later retrieval by the getMessage()
method.public SevenZipException(java.lang.Throwable cause)
PrivilegedActionException
).
cause
- the cause (which is saved for later retrieval by the getCause()
method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getSevenZipExceptionMessage()
public void printStackTraceExtended()
System.err
.
public void printStackTraceExtended(java.io.PrintStream printStream)
printStream
- PrintStream
to use for outputpublic void printStackTraceExtended(java.io.PrintWriter printWriter)
printWriter
- PrintWriter
to use for outputpublic java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.lang.Throwable getCauseLastThrown()
null
if no other (different to getCause()
) exception known as a cause for this
exception.public java.lang.Throwable getCauseLastPotentialThrown()
null
if no such exception was thrown.public java.lang.Throwable getCauseFirstPotentialThrown()
null
if no such exception was thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |