com.sun.mail.iap
Class ProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.mail.iap.ProtocolException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BadCommandException, CommandFailedException, ConnectionException, LiteralException, ParsingException
public class ProtocolException
- extends java.lang.Exception
- See Also:
- Serialized Form
Constructor Summary |
ProtocolException()
Constructs a ProtocolException with no detail message. |
ProtocolException(Response r)
Constructs a ProtocolException with the specified Response object. |
ProtocolException(java.lang.String message)
Constructs a ProtocolException with the specified detail message. |
ProtocolException(java.lang.String message,
java.lang.Throwable cause)
Constructs a ProtocolException with the specified detail message
and cause. |
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 |
response
protected transient Response response
ProtocolException
public ProtocolException()
- Constructs a ProtocolException with no detail message.
ProtocolException
public ProtocolException(java.lang.String message)
- Constructs a ProtocolException with the specified detail message.
- Parameters:
message
- the detail message
ProtocolException
public ProtocolException(java.lang.String message,
java.lang.Throwable cause)
- Constructs a ProtocolException with the specified detail message
and cause.
- Parameters:
message
- the detail messagecause
- the cause
ProtocolException
public ProtocolException(Response r)
- Constructs a ProtocolException with the specified Response object.
getResponse
public Response getResponse()
- Return the offending Response object.