use of com.tvd12.ezyfoxserver.response.EzyErrorParams in project ezyfox-server by youngmonkeys.
the class EzyLoginController method newLoginErrorResponse.
protected EzyResponse newLoginErrorResponse(EzyILoginError error) {
EzyErrorParams params = new EzyErrorParams();
params.setError(error);
return new EzyLoginErrorResponse(params);
}
use of com.tvd12.ezyfoxserver.response.EzyErrorParams in project ezyfox-server by youngmonkeys.
the class EzyAbstractDataHandler method responseError.
protected void responseError() {
EzyErrorParams params = new EzyErrorParams();
params.setError(EzySessionError.MAX_REQUEST_PER_SECOND);
response(new EzyErrorResponse(params));
}
use of com.tvd12.ezyfoxserver.response.EzyErrorParams in project ezyfox-server by youngmonkeys.
the class EzyRequestAppErrorResponseTest method test.
@Test
public void test() {
EzyErrorParams params = new EzyErrorParams();
params.setError(EzyRequestAppError.HAS_NOT_ACCESSED);
EzyRequestAppErrorResponse response = new EzyRequestAppErrorResponse(params);
assert response.getCommand() == EzyCommand.APP_REQUEST_ERROR;
assert response.getParams() == params;
response.release();
}
use of com.tvd12.ezyfoxserver.response.EzyErrorParams in project ezyfox-server by youngmonkeys.
the class EzyAccessAppErrorResponseTest method test.
@Test
public void test() {
EzyErrorParams params = new EzyErrorParams();
params.setCode(1);
params.setMessage("m");
params.setError(EzyAccessAppError.MAXIMUM_USER);
assert params.getCode() == EzyAccessAppError.MAXIMUM_USER.getId();
assert params.getMessage().equals(EzyAccessAppError.MAXIMUM_USER.getMessage());
EzyAccessAppErrorResponse response = new EzyAccessAppErrorResponse(params);
response.release();
}
use of com.tvd12.ezyfoxserver.response.EzyErrorParams in project ezyfox-server by youngmonkeys.
the class EzyRequestAppController method newRequestAppErrorResponse.
protected EzyResponse newRequestAppErrorResponse() {
EzyErrorParams params = new EzyErrorParams();
params.setError(EzyRequestAppError.HAS_NOT_ACCESSED);
return new EzyRequestAppErrorResponse(params);
}
Aggregations