Package mireka.pop
Class Pop3Exception
- Object
-
- Throwable
-
- Exception
-
- mireka.pop.Pop3Exception
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CommandSyntaxException,IllegalSessionStateException,MaildropLockedException,MaildropPopException
public class Pop3Exception extends ExceptionSignals POP3 related exception and optionally includes standard POP3 response codes in addition to the human readable message.
-
-
Field Summary
Fields Modifier and Type Field Description StringresponseCodeAn extended POP3 response code.
-
Constructor Summary
Constructors Constructor Description Pop3Exception(String responseCode, String message)Constructs a Pop3Exception with the specified response code and human readable message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoResponse()Returns a complete POP3 response line corresponding to this error, which can be sent to the client.
-
-
-
Constructor Detail
-
Pop3Exception
public Pop3Exception(String responseCode, String message)Constructs a Pop3Exception with the specified response code and human readable message.- Parameters:
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.
-
-