Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import com.groupon.grox.Action;
public class LoginFailedAction implements Action<State> {
private Throwable throwable;
public ErrorAction(Throwable throwable){
this.throwable = throwable;
}
@Override
public State newState(LoginStateModel oldState) {
return oldState.toBuilder()
.setLoginState(LOGIN_FAILED)
.setLoginException(throwable)
.build());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment