| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | com.paymill.android.service.PMError | ||
This is the exception that is returned in every unsuccessful asynchronous callback. There are several types of this error. A detail message may also exist.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PMError.BridgeError | The type of the bridge error. | ||||||||||
| PMError.SafeStoreError | The type of the safe store error. | ||||||||||
| PMError.Type | Type of the error that the SDK returns | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates new PMError with a type and empty message
| |||||||||||
Creates new PMError
| |||||||||||
Creates new PMError of type API.
| |||||||||||
Creates new PMError of type BRIDGE.
| |||||||||||
Creates new PMError of type SAFE_STORE.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the exact BridgeError.
| |||||||||||
Return the HTTP code of the request, caused this error.
| |||||||||||
Return a detail message about this error.
| |||||||||||
Returns the exact SafeStoreError.
| |||||||||||
Returns the type of this error.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Creates new PMError with a type and empty message
| type | the type |
|---|
Creates new PMError
| type | the type |
|---|---|
| message | the message |
Creates new PMError of type API.
| message | the message |
|---|---|
| httpCode | the http code returned when generating this request. May be 0 or less, if none is available. |
Creates new PMError of type BRIDGE.
| type | the exact bridge error type |
|---|---|
| message | the detailed message |
Creates new PMError of type SAFE_STORE.
| type | the exact safe store error type |
|---|---|
| message | the detailed message |
Returns the exact BridgeError.
Return the HTTP code of the request, caused this error.
Note: The HTTP code exists only for API type errors.
Return a detail message about this error.
Note: This is a developer message. It may include a whole
stacktrace of an exception thrown inside the SDK. Consider using the type
of the error to handle messages for the end user.
Returns the exact SafeStoreError.