If onError throws an exception the action would not be executed.