MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / callCallback

Method callCallback

src/java/com/libmailcore/SMTPOperation.java:22–32  ·  view source on GitHub ↗

Calls the method succeeded() of the callback if the operation succeeded or failed() if the operation failed. @see com.libmailcore.OperationCallback

()

Source from the content-addressed store, hash-verified

20 @see com.libmailcore.OperationCallback
21 */
22 protected void callCallback()
23 {
24 if (callback != null) {
25 if (errorCode() == ErrorCode.ErrorNone) {
26 callback.succeeded();
27 }
28 else {
29 callback.failed(exception());
30 }
31 }
32 }
33}

Callers

nothing calls this directly

Calls 4

errorCodeMethod · 0.95
exceptionMethod · 0.95
succeededMethod · 0.65
failedMethod · 0.65

Tested by

no test coverage detected