Code example for UnsupportedEncodingException

Methods: e, getMessage

0
        try { 
             String encodedAccessKey = URLEncoder.encode(accessKey, "UTF-8");
            getContainer().send("/photo/albums/" + userId
                    + "/@self?accessKey=" + encodedAccessKey, handler);
        } catch (UnsupportedEncodingException e) {
            Log.e("PhotoContainerImpl", e.getMessage(), e);
            throw new IllegalStateException(e);
        } 
    } 
 
    @Override 
    public void getFriendAlbum(final  String userId, final  String albumId,
            final GetAlbumsCallbackHandler handler) {
        getContainer().send("/photo/albums/" + userId
                + "/@self/" + albumId, handler);
    } 
 
    @Override 
    public void getFriendAlbum(final  String userId, final  String albumId,
            final  String accessKey, final GetAlbumsCallbackHandler handler) {
        try {