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

Method callCallback

src/java/com/libmailcore/NNTPOperation.java:23–33  ·  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

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

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