NEResult<T> onFailure(void Function(int, String?) action) { if (!isSuccess()) { action(code, msg); } return this; }