public class ChargehoundExceptionFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChargehoundExceptionFactory.ChargehoundErrorDetails
Define a class to parse the error message.
|
static class |
ChargehoundExceptionFactory.ChargehoundErrorJson
Define a class to parse the error Json.
|
| Constructor and Description |
|---|
ChargehoundExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
ChargehoundException |
genericChargehoundException(java.lang.Exception error)
Create a Chargehound exception from a generic exception.
|
ChargehoundException |
httpResponseException(com.google.api.client.http.HttpResponseException error)
Create a Chargehound exception from an Http exception.
|
public ChargehoundException httpResponseException(com.google.api.client.http.HttpResponseException error)
error - an HTTP exceptionpublic ChargehoundException genericChargehoundException(java.lang.Exception error)
error - any exception exception