public static void notNull ( Object object , ErrorEnum error ) { if ( object == null ) { throw new ServiceException ( error . getCode (), error . getMsg ()); } }
if (object == null) {
throw new ServiceException(error.getCode(), error.getMsg());
}
}