Package com.sun.mail.iap
Class ProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.mail.iap.ProtocolException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadCommandException,CommandFailedException,ConnectionException,IMAPReferralException,LiteralException,ParsingException
- Author:
- John Mani
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a ProtocolException with no detail message.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. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
response
-
-
Constructor Details
-
ProtocolException
public ProtocolException()Constructs a ProtocolException with no detail message. -
ProtocolException
Constructs a ProtocolException with the specified detail message.- Parameters:
message- the detail message
-
ProtocolException
Constructs a ProtocolException with the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause
-
ProtocolException
Constructs a ProtocolException with the specified Response object.- Parameters:
r- the Response
-
-
Method Details
-
getResponse
Return the offending Response object.- Returns:
- the Response object
-