All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.n2oapp.framework.engine.data.N2oQueryExceptionHandler Maven / Gradle / Ivy

There is a newer version: 7.28.3
Show newest version
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