Top Fields Constructors Methods
com.sun.mail.iap

public Class ProtocolException

extends Exception
Class Inheritance
Known Direct Subclasses
com.sun.mail.imap.protocol.IMAPReferralException, com.sun.mail.iap.BadCommandException, com.sun.mail.iap.CommandFailedException, com.sun.mail.iap.ConnectionException, com.sun.mail.iap.LiteralException, com.sun.mail.iap.ParsingException

Author
John Mani

Field Summary

Modifier and TypeField and Description
protected transient Response
private static final long

Constructor Summary

AccessConstructor and Description
public
ProtocolException()

Constructs a ProtocolException with no detail message.

public
ProtocolException(String
the detail message
message
)

Constructs a ProtocolException with the specified detail message.

public
ProtocolException(String
the detail message
message
,
Throwable
the cause
cause
)

Constructs a ProtocolException with the specified detail message and cause.

public
ProtocolException(Response
the Response
r
)

Constructs a ProtocolException with the specified Response object.

Method Summary

Modifier and TypeMethod and Description
public Response

Returns:

the Response object
getResponse
()

Return the offending Response object.

Field Detail

responseback to summary
protected transient Response response
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

ProtocolExceptionback to summary
public ProtocolException()

Constructs a ProtocolException with no detail message.

ProtocolExceptionback to summary
public ProtocolException(String message)

Constructs a ProtocolException with the specified detail message.

Parameters
message:String

the detail message

ProtocolExceptionback to summary
public ProtocolException(String message, Throwable cause)

Constructs a ProtocolException with the specified detail message and cause.

Parameters
message:String

the detail message

cause:Throwable

the cause

ProtocolExceptionback to summary
public ProtocolException(Response r)

Constructs a ProtocolException with the specified Response object.

Parameters
r:Response

the Response

Method Detail

getResponseback to summary
public Response getResponse()

Return the offending Response object.

Returns:Response

the Response object