Package org.apache.sqoop.common

Examples of org.apache.sqoop.common.ErrorCode


    HttpServletResponse response = ctx.getResponse();
    setContentType(response);
    setHeaders(response, SqoopResponseCode.SQOOP_2000);

    if (ex != null) {
      ErrorCode ec = null;
      if (ex instanceof SqoopException) {
        ec = ((SqoopException) ex).getErrorCode();
      } else {
        ec = CoreError.CORE_0000;
      }

      response.setHeader(
          SqoopProtocolConstants.HEADER_SQOOP_INTERNAL_ERROR_CODE,
          ec.getCode());

      response.setHeader(
          SqoopProtocolConstants.HEADER_SQOOP_INTERNAL_ERROR_MESSAGE,
          ex.getMessage());
View Full Code Here


    HttpServletResponse response = ctx.getResponse();
    setContentType(response);
    setHeaders(response, SqoopResponseCode.SQOOP_2000);

    if (ex != null) {
      ErrorCode ec = null;
      if (ex instanceof SqoopException) {
        ec = ((SqoopException) ex).getErrorCode();
      } else {
        ec = CoreError.CORE_0000;
      }

      response.setHeader(
          SqoopProtocolConstants.HEADER_SQOOP_INTERNAL_ERROR_CODE,
          ec.getCode());

      response.setHeader(
          SqoopProtocolConstants.HEADER_SQOOP_INTERNAL_ERROR_MESSAGE,
          ex.getMessage());
View Full Code Here

TOP

Related Classes of org.apache.sqoop.common.ErrorCode

Copyright © 2018 www.massapicom. 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.