net.sf.uadetector.exception
Class CannotCloseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.uadetector.exception.CannotCloseException
All Implemented Interfaces:
java.io.Serializable

public class CannotCloseException
extends java.lang.RuntimeException

Thrown to indicate that a Closeable cannot be closed.

This exception is intended to tunnel the checked exception IOException during the call Closeable.close().

Author:
André Rouél
See Also:
Serialized Form

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

DEFAULT_MESSAGE

protected static final java.lang.String DEFAULT_MESSAGE
See Also:
Constant Field Values

MESSAGE_WITH_INFO

protected static final java.lang.String MESSAGE_WITH_INFO
See Also:
Constant Field Values
Constructor Detail

CannotCloseException

public CannotCloseException()
Constructs an CannotCloseException with the default message DEFAULT_MESSAGE.


CannotCloseException

public CannotCloseException(java.lang.String info)
Constructs an CannotCloseException with the message MESSAGE_WITH_INFO including additional information.

Parameters:
info - additional information why a Closeable cannot be closed

CannotCloseException

public CannotCloseException(java.lang.String info,
                            java.lang.Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_INFO including additional information.

Parameters:
info - additional information why a Closeable cannot be closed
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.)

CannotCloseException

public CannotCloseException(java.lang.Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE.

Parameters:
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.)


Copyright © 2011-2014. All Rights Reserved.