zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TisonKun (Jira)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-3520) KeeperException is good to have a error message field besides path
Date Sun, 25 Aug 2019 02:44:00 GMT
TisonKun created ZOOKEEPER-3520:
-----------------------------------

             Summary: KeeperException is good to have a error message field besides path
                 Key: ZOOKEEPER-3520
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3520
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
            Reporter: TisonKun


We trickily set a diagnosis msg as {{path}} of {{KeeperException}} in {{CreateMode}}(see code
snippet below) because {{KeeperException}} doesn't have a dedicated error message field. It
is good to have a {{diagnosis}} field beside {{path}} for error message beyond a path.


{code:java}
// CreateMode#L136
String errMsg = "Received an invalid flag value: " + flag + " to convert to a CreateMode";
LOG.error(errMsg);
throw new KeeperException.BadArgumentsException(errMsg);
{code}




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message