public class GoCardlessErrorMapper
extends java.lang.Object
Provides a mapping between API error responses and exceptions. Users of this library will not need to use this class.
Constructor and Description |
---|
GoCardlessErrorMapper() |
Modifier and Type | Method and Description |
---|---|
static GoCardlessApiException |
toException(ApiErrorResponse error)
Maps an error response to an exception.
|
public static GoCardlessApiException toException(ApiErrorResponse error)
Maps an error response to an exception.
error
- the error response to map