-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add message to api exception and update JavaDocs for error codes #60
Add message to api exception and update JavaDocs for error codes #60
Conversation
9e6ebd3
to
dfc6beb
Compare
} | ||
|
||
public int getHttpStatusCode() { | ||
return httpStatusCode; | ||
} | ||
|
||
public APIError getApiError() { | ||
return apiError != null ? APIError.fetchErrorResponseFromErrorCode(apiError) : null; | ||
return apiErrorCode != null ? APIError.fetchErrorResponseFromErrorCode(apiErrorCode) : null; | ||
} | ||
|
||
public Long getRawApiError() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest renaming to getRawApiErrorCode
or just getApiErrorCode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting the raw apiError enum, hence the name
} | ||
|
||
@Override | ||
public String toString() { | ||
return "APIException{" + | ||
"httpStatusCode=" + httpStatusCode + | ||
", apiError=" + apiError + | ||
"} " + super.toString(); | ||
", apiError=" + apiErrorCode + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apiError -> apiErrorCode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The public name for this field is apiError
Add JavaDocs for the error codes
dfc6beb
to
b04e4c0
Compare
No description provided.