Returns error once the operation finished running. It will return null if the operation successfully ran.
()
| 7 | successfully ran. |
| 8 | */ |
| 9 | public MailException exception() { |
| 10 | if (errorCode() == ErrorCode.ErrorNone) { |
| 11 | return null; |
| 12 | } |
| 13 | return new MailException(errorCode()); |
| 14 | } |
| 15 | |
| 16 | private native int errorCode(); |
| 17 |