diff options
Diffstat (limited to 'src/java/com/libmailcore/POPOperation.java')
-rw-r--r-- | src/java/com/libmailcore/POPOperation.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/java/com/libmailcore/POPOperation.java b/src/java/com/libmailcore/POPOperation.java index e349a0c8..5f8baed3 100644 --- a/src/java/com/libmailcore/POPOperation.java +++ b/src/java/com/libmailcore/POPOperation.java @@ -1,6 +1,11 @@ package com.libmailcore; +/** POP Operation. */ public class POPOperation extends Operation { + /** + Returns error once the operation finished running. It will return null if the operation + successfully ran. + */ public MailException exception() { if (errorCode() == ErrorCode.ErrorNone) { return null; @@ -10,6 +15,11 @@ public class POPOperation extends Operation { private native int errorCode(); + /** + Calls the method succeeded() of the callback if the operation succeeded or failed() + if the operation failed. + @see OperationCallback + */ protected void callCallback() { if (callback != null) { |