Permalink
Browse files

Adapted exceptions to new AutoReconnect style

  • Loading branch information...
1 parent dad4626 commit f5fa7c59a0cc66f21609ee2afb4050bac79bc895 Craig Walls committed Feb 15, 2013
View
2 ...-linkedin/src/main/java/org/springframework/social/linkedin/api/impl/ProfileTemplate.java
@@ -97,7 +97,7 @@ public LinkedInProfile getProfileByPublicUrl(String url) {
return restOperations.getForObject(URIBuilder.fromUri(BASE_URL + "url=" + URLEncoder.encode(url, "UTF-8") + PROFILE_FIELDS).build(), LinkedInProfile.class);
} catch (UnsupportedEncodingException unlikely) {
unlikely.printStackTrace();
- throw new ApiException("Unlikely unsupported encoding error", unlikely);
+ throw new ApiException("linkedin", "Unlikely unsupported encoding error", unlikely);
}
}

0 comments on commit f5fa7c5

Please sign in to comment.