Skip to content

JAV-141 resolve spelling mistake for configuration item problem#98

Merged
WillemJiang merged 1 commit intoapache:masterfrom
wujimin:resolve-wrong-config-item
Jul 25, 2017
Merged

JAV-141 resolve spelling mistake for configuration item problem#98
WillemJiang merged 1 commit intoapache:masterfrom
wujimin:resolve-wrong-config-item

Conversation

@wujimin
Copy link
Copy Markdown
Contributor

@wujimin wujimin commented Jul 24, 2017

read new correct config item first
if value is empty, then read old wrong config item.

read new correct config item first
if value is empty, then read old wrong config item.
@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 87084ac on wujimin:resolve-wrong-config-item into ** on ServiceComb:master**.

"Define propertyExtendedClass %s in yaml, but not implement the interface PropertyExtended.",
extendedPropertyClass);
LOGGER.error(errMsg);
throw new Error(errMsg);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

尽管是配置错误,不让启动,在程序里面throw Error, Exception, RuntimeException,或者捕获这些异常,都不是很友好的代码结构,这会导致使用者代码控制流程很难写。代码应该尽可能使用确切的异常类型来表达具体的错误。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just refused to boot.

@WillemJiang WillemJiang merged commit b0961b2 into apache:master Jul 25, 2017
@wujimin wujimin deleted the resolve-wrong-config-item branch August 11, 2017 09:19
@WillemJiang WillemJiang modified the milestone: 0.2.0 Aug 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants