SerializableBadCommandException, CommandFailedException, ConnectionException, IMAPReferralException, LiteralException, ParsingExceptionpublic class ProtocolException extends Exception
| Constructor | Description |
|---|---|
ProtocolException() |
Constructs a ProtocolException with no detail message.
|
ProtocolException(Response r) |
Constructs a ProtocolException with the specified Response object.
|
ProtocolException(String message) |
Constructs a ProtocolException with the specified detail message.
|
ProtocolException(String message,
Throwable cause) |
Constructs a ProtocolException with the specified detail message
and cause.
|
| Modifier and Type | Method | Description |
|---|---|---|
Response |
getResponse() |
Return the offending Response object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected transient Response response
public ProtocolException()
public ProtocolException(String message)
message - the detail messagepublic ProtocolException(String message, Throwable cause)
message - the detail messagecause - the causepublic ProtocolException(Response r)
r - the Responsepublic Response getResponse()
Copyright © 2018 Oracle. All rights reserved.