Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1596

Sqoop2: Make ErrorCode a base class ( avoid repeated code in every connector)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      package org.apache.sqoop.common;
      
      /**
       * Defines an error-code contract. Sqoop exceptions use the error code to
       * communicate error information where possible. Each error code is associated
       * with default message that identifies the high level information related to
       * the underlying error condition.
       */
      public interface ErrorCode {
      
        /**
         * @return the string representation of the error code.
         */
        String getCode();
      
        /**
         * @return the message associated with error code.
         */
        String getMessage();
      }
      
      

      to

      package org.apache.sqoop.common;
      
      /**
       * Defines an error-code contract. Sqoop exceptions use the error code to
       * communicate error information where possible. Each error code is associated
       * with default message that identifies the high level information related to
       * the underlying error condition.
       */
      public abstract class ErrorCode {
      
        /**
         * @return the string representation of the error code.
         */
        String getCode() {
        }
      
        /**
         * @return the message associated with error code.
         */
        String getMessage() {
      
      }
      }
      
      

      Attachments

        Issue Links

          Activity

            People

              vybs Veena Basavaraj
              vybs Veena Basavaraj
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: