Aleksandr created IGNITE-20254:
----------------------------------

             Summary: Refactor CLI exception handling
                 Key: IGNITE-20254
                 URL: https://issues.apache.org/jira/browse/IGNITE-20254
             Project: Ignite
          Issue Type: Task
          Components: cli
            Reporter: Aleksandr


Now the CLI handles exceptions by finding a proper handler by the exception 
type. But REST client throws the same exception all the time and CLI exception 
handler becomes messy. 

I would like to refactor the CLI exception handling mechanism in a way that we 
can associate a handler with Ignite error code. 

Now ExceptionHandler interface has         

public Class<Throwable> applicableException() {
            return Throwable.class;
        }

But it would be useful to have one more method

public Class<Throwable> applicableErrorCode() {
            return "IGN-...-2"; // for example
        }



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to