Examples of logAtImportance()


Examples of com.foundationdb.server.error.ErrorCode.logAtImportance()

        final ErrorCode code = ErrorCode.getCodeForRESTException(e);
        Response.Status status = EXCEPTION_STATUS_MAP.get(e.getClass());
        if(status == null) {
            status = Response.Status.CONFLICT;
        }
        code.logAtImportance(
                LOG, "Exception from request(method: {}, url: {}, params: {})",
                request.getMethod(), request.getRequestURL(), request.getQueryString(),
                e
        );
        String exMsg = (e.getMessage() != null) ? e.getMessage() : e.getClass().getName();
View Full Code Here

Examples of com.foundationdb.server.error.ErrorCode.logAtImportance()

            if (throwable instanceof Wrapper) {
                throwable = (SQLException)ex.getCause();
            }

            final ErrorCode code = ErrorCode.getCodeForRESTException(throwable);
            code.logAtImportance(
                    LOG, "Statement execution for query {} failed with exception {}", sql, throwable
            );

            throw JDBCException.throwUnwrapped(ex);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.