[ 
https://issues.apache.org/jira/browse/SQOOP-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Veena Basavaraj updated SQOOP-1596:
-----------------------------------
    Labels: code-cleanup  (was: )

> Sqoop2: Make ErrorCode a base class ( avoid repeated code in every connector)
> -----------------------------------------------------------------------------
>
>                 Key: SQOOP-1596
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1596
>             Project: Sqoop
>          Issue Type: Improvement
>            Reporter: Veena Basavaraj
>            Assignee: Veena Basavaraj
>              Labels: code-cleanup
>             Fix For: 2.0.0
>
>
> {code}
> 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();
> }
> {code}
> to 
> {code}
> 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() {
> }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to