minor refactoring

reporting
inoshperera 5 years ago
parent 45bfadb657
commit 8b2cfcbfe0

@ -320,21 +320,21 @@ public class RequestValidationUtil {
deviceType; deviceType;
log.error(msg); log.error(msg);
throw new InputValidationException( throw new InputValidationException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(msg).build new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(msg).build
()); ());
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
String msg = "Error when accessing an instance of validator related to deviceType " + String msg = "Error when accessing an instance of validator related to deviceType " +
deviceType; deviceType;
log.error(msg); log.error(msg);
throw new InputValidationException( throw new InputValidationException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(msg).build new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(msg).build
()); ());
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
String msg ="Error when loading an instance of validator related to deviceType " + String msg ="Error when loading an instance of validator related to deviceType " +
deviceType; deviceType;
log.error(msg); log.error(msg);
throw new InputValidationException( throw new InputValidationException(
new ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage(msg).build new ErrorResponse.ErrorResponseBuilder().setCode(500l).setMessage(msg).build
()); ());
} }
return null; return null;

Loading…
Cancel
Save