void onFail(ServerFailure failure) { if (receiver != null) { receiver.onFailure(failure); } }
/** * Called if an object sent to the server could not be validated. The default * implementation calls {@link #onFailure(ServerFailure)} if <code>errors * </code> is not empty. * * @param errors a Set of {@link Violation} instances * @deprecated Use {@link #onConstraintViolation(Set)} instead */ @Deprecated public void onViolation(Set<Violation> errors) { if (!errors.isEmpty()) { onFailure(new ServerFailure("The call failed on the server due to a ConstraintViolation")); } }
@Override public void onFailure(ServerFailure error) { try { if (toCall != null) { for (Receiver<? super T> r : toCall) { try { r.onFailure(error); } catch (Throwable t) { onUncaughtThrowable(t); } } } } finally { finish(); } }
receiver.onFailure(failure); } catch (Throwable t) { if (causes == null) {
void onFail(ServerFailure failure) { if (receiver != null) { receiver.onFailure(failure); } }
void onFail(ServerFailure failure) { if (receiver != null) { receiver.onFailure(failure); } }
void onFail(ServerFailure failure) { if (receiver != null) { receiver.onFailure(failure); } }
/** * Called if an object sent to the server could not be validated. The default * implementation calls {@link #onFailure(ServerFailure)} if <code>errors * </code> is not empty. * * @param errors a Set of {@link Violation} instances * @deprecated Use {@link #onConstraintViolation(Set)} instead */ @Deprecated public void onViolation(Set<Violation> errors) { if (!errors.isEmpty()) { onFailure(new ServerFailure("The call failed on the server due to a ConstraintViolation")); } }
/** * Called if an object sent to the server could not be validated. The default * implementation calls {@link #onFailure(ServerFailure)} if <code>errors * </code> is not empty. * * @param errors a Set of {@link Violation} instances * @deprecated Use {@link #onConstraintViolation(Set)} instead */ @Deprecated public void onViolation(Set<Violation> errors) { if (!errors.isEmpty()) { onFailure(new ServerFailure("The call failed on the server due to a ConstraintViolation")); } }
/** * Called if an object sent to the server could not be validated. The default * implementation calls {@link #onFailure(ServerFailure)} if <code>errors * </code> is not empty. * * @param errors a Set of {@link Violation} instances * @deprecated Use {@link #onConstraintViolation(Set)} instead */ @Deprecated public void onViolation(Set<Violation> errors) { if (!errors.isEmpty()) { onFailure(new ServerFailure("The call failed on the server due to a ConstraintViolation")); } }
@Override public void onFailure(ServerFailure error) { try { if (toCall != null) { for (Receiver<? super T> r : toCall) { try { r.onFailure(error); } catch (Throwable t) { onUncaughtThrowable(t); } } } } finally { finish(); } }
@Override public void onFailure(ServerFailure error) { try { if (toCall != null) { for (Receiver<? super T> r : toCall) { try { r.onFailure(error); } catch (Throwable t) { onUncaughtThrowable(t); } } } } finally { finish(); } }
@Override public void onFailure(ServerFailure error) { try { if (toCall != null) { for (Receiver<? super T> r : toCall) { try { r.onFailure(error); } catch (Throwable t) { onUncaughtThrowable(t); } } } } finally { finish(); } }
receiver.onFailure(failure); } catch (Throwable t) { if (causes == null) {
receiver.onFailure(failure); } catch (Throwable t) { if (causes == null) {
receiver.onFailure(failure); } catch (Throwable t) { if (causes == null) {