|
||||||||||
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.CanNotOpenStreamException
public class CanNotOpenStreamException
Thrown to indicate that no stream to an URL
can be established.
This exception is intended to tunnel the checked exception IOException
during the call
URL.openStream()
.
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_MESSAGE
|
protected static java.lang.String |
MESSAGE_WITH_URL
|
Constructor Summary | |
---|---|
CanNotOpenStreamException()
Constructs an CanNotOpenStreamException with the default message
DEFAULT_MESSAGE . |
|
CanNotOpenStreamException(java.lang.String url)
Constructs an CanNotOpenStreamException with the message
MESSAGE_WITH_URL including the given URL as string representation. |
|
CanNotOpenStreamException(java.lang.String url,
java.lang.Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_URL including the
given URL as string representation and cause. |
|
CanNotOpenStreamException(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_URL
Constructor Detail |
---|
public CanNotOpenStreamException()
CanNotOpenStreamException
with the default message
DEFAULT_MESSAGE
.
public CanNotOpenStreamException(java.lang.String url)
CanNotOpenStreamException
with the message
MESSAGE_WITH_URL
including the given URL as string representation.
url
- the URL to which no stream can be establishedpublic CanNotOpenStreamException(java.lang.String url, java.lang.Throwable cause)
MESSAGE_WITH_URL
including the
given URL as string representation and cause.
url
- the URL to which no stream can be establishedcause
- 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 CanNotOpenStreamException(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 |