public class Pop3Exception
extends Exception
Modifier and Type | Field and Description |
---|---|
String |
responseCode
An extended POP3 response code.
|
Constructor and Description |
---|
Pop3Exception(String responseCode,
String message)
Constructs a Pop3Exception with the specified response code and human
readable message.
|
Modifier and Type | Method and Description |
---|---|
String |
toResponse()
Returns a complete POP3 response line corresponding to this error, which
can be sent to the client.
|
@Nullable public final String responseCode
public Pop3Exception(String responseCode, String message)
responseCode
- An extended POP3 response code, for example "IN-USE".
Frequently this is null, because there are not many
standardized POP3 codes, moreover they are useful only if the
client program should react differently to different errors.message
- Human readable message which will be sent to the client.