blob: dd13f752b53fee58d871d2d4af7a83926629d436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.p4square.ccbapi.exception;
import com.p4square.ccbapi.model.CCBErrorResponse;
import java.util.List;
/**
* CCBErrorResponseException is thrown when the CCB API returns one or more error responses.
*/
public class CCBErrorResponseException extends CCBException {
private final List<CCBErrorResponse> errors;
public CCBErrorResponseException(List<CCBErrorResponse> errors) {
super("CCB API service responded with errors: " + errors);
this.errors = errors;
}
/**
* @return The error response returned by the service.
*/
public List<CCBErrorResponse> getErrors() {
return errors;
}
}
|