Skip to content

Commit

Permalink
chg: make response error handler public
Browse files Browse the repository at this point in the history
  • Loading branch information
martiner authored and Martin Caslavsky committed Jul 29, 2015
1 parent ce59792 commit 4d176a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/gooddata/GoodData.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.gooddata.account.AccountService;
import com.gooddata.connector.ConnectorService;
import com.gooddata.dataload.processes.ProcessService;
import com.gooddata.util.ResponseErrorHandler;
import com.gooddata.warehouse.WarehouseService;
import com.gooddata.dataset.DatasetService;
import com.gooddata.gdc.DataStoreService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved.
*/
package com.gooddata;
package com.gooddata.util;

import com.gooddata.GoodDataRestException;
import com.gooddata.gdc.GdcError;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.http.converter.HttpMessageConverter;
Expand All @@ -19,11 +20,11 @@
/**
* A response error handler able to extract GoodData error response
*/
class ResponseErrorHandler extends DefaultResponseErrorHandler {
public class ResponseErrorHandler extends DefaultResponseErrorHandler {

private HttpMessageConverterExtractor<GdcError> gdcErrorExtractor;

ResponseErrorHandler(List<HttpMessageConverter<?>> messageConverters) {
public ResponseErrorHandler(List<HttpMessageConverter<?>> messageConverters) {
gdcErrorExtractor = new HttpMessageConverterExtractor<>(GdcError.class,
noNullElements(messageConverters, "messageConverters"));
}
Expand Down

0 comments on commit 4d176a2

Please sign in to comment.