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