Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Return -100 (CONNECTION_CLOSED) when there's a remote-close #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bemasc
Copy link
Contributor

@bemasc bemasc commented Jan 9, 2017

No description provided.

} else if (e instanceof NotYetConnectedException) {
code = -15;
}
JSONObject info = buildErrorInfo(code, e.getMessage());

Choose a reason for hiding this comment

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

We should look to use multiple catches for the different types of exceptions rather than if and instanceof

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants