Skip to content

Commit

Permalink
Removed plural in method name. (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jan 2, 2018
1 parent 183168e commit 7bbc4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bunq/sdk/exception/ExceptionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ExceptionFactory {
* @return The exception that belongs to this status code.
*/
public static ApiException createExceptionForResponse(int responseCode, List<String> messages, String responseId){
String error_message = concatenateMessages(messages, responseId);
String error_message = concatenateAllMessage(messages, responseId);

switch (responseCode) {
case HTTP_RESPONSE_CODE_BAD_REQUEST:
Expand All @@ -55,7 +55,7 @@ public static ApiException createExceptionForResponse(int responseCode, List<Str
}
}

private static String concatenateMessages(List<String> messages, String responseId) {
private static String concatenateAllMessage(List<String> messages, String responseId) {
return String.format(FORMAT_ERROR_MESSAGE, responseId, String.join(SEPARATOR_ERROR_MESSAGES, messages));
}

Expand Down

0 comments on commit 7bbc4c6

Please sign in to comment.