net.n2oapp.framework.engine.data.N2oQueryExceptionHandler Maven / Gradle / Ivy
package net.n2oapp.framework.engine.data;
import net.n2oapp.framework.api.criteria.N2oPreparedCriteria;
import net.n2oapp.framework.api.data.QueryExceptionHandler;
import net.n2oapp.framework.api.exception.N2oException;
import net.n2oapp.framework.api.metadata.local.CompiledQuery;
/**
* Обработка исключений получения выборки по умолчанию
*/
public class N2oQueryExceptionHandler implements QueryExceptionHandler {
@Override
public N2oException handle(CompiledQuery query, N2oPreparedCriteria criteria, Exception e) {
if (e instanceof N2oException)
return (N2oException) e;
return new N2oException(e);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy