|
||||||||||
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.lang.RuntimeException net.sf.uadetector.exception.CannotCloseException
public class CannotCloseException
Thrown to indicate that a Closeable
cannot be closed.
This exception is intended to tunnel the checked exception IOException
during the call
Closeable.close()
.
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_MESSAGE
|
protected static java.lang.String |
MESSAGE_WITH_INFO
|
Constructor Summary | |
---|---|
CannotCloseException()
Constructs an CannotCloseException with the default message DEFAULT_MESSAGE . |
|
CannotCloseException(java.lang.String info)
Constructs an CannotCloseException with the message MESSAGE_WITH_INFO
including additional information. |
|
CannotCloseException(java.lang.String info,
java.lang.Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_INFO including additional
information. |
|
CannotCloseException(java.lang.Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE . |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 |
---|
protected static final java.lang.String DEFAULT_MESSAGE
protected static final java.lang.String MESSAGE_WITH_INFO
Constructor Detail |
---|
public CannotCloseException()
CannotCloseException
with the default message DEFAULT_MESSAGE
.
public CannotCloseException(java.lang.String info)
CannotCloseException
with the message MESSAGE_WITH_INFO
including additional information.
info
- additional information why a Closeable
cannot be closedpublic CannotCloseException(java.lang.String info, java.lang.Throwable cause)
MESSAGE_WITH_INFO
including additional
information.
info
- additional information why a Closeable
cannot be closedcause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)public CannotCloseException(java.lang.Throwable cause)
DEFAULT_MESSAGE
.
cause
- the cause (which is saved for later retrieval by the Throwable.getCause()
method). (A
null
value is permitted, and indicates that the cause is nonexistent or unknown.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |