BitPayExceptionProvider
in package
Table of Contents
Constants
- GENERIC_API_UNMAPPED_ERROR_CODE = "000000"
Methods
- throwApiExceptionByArrayResponse() : void
- throwApiExceptionWithMessage() : void
- throwDeserializeException() : void
- throwDeserializeResourceException() : void
- throwGenericExceptionWithMessage() : void
- throwInvalidCurrencyException() : void
- throwValidationException() : void
- logErrorMessage() : void
Constants
GENERIC_API_UNMAPPED_ERROR_CODE
public
mixed
GENERIC_API_UNMAPPED_ERROR_CODE
= "000000"
Methods
throwApiExceptionByArrayResponse()
public
static throwApiExceptionByArrayResponse(array<string|int, mixed>|null $body) : void
Parameters
- $body : array<string|int, mixed>|null
Tags
throwApiExceptionWithMessage()
public
static throwApiExceptionWithMessage(string|null $message) : void
Parameters
- $message : string|null
Tags
throwDeserializeException()
public
static throwDeserializeException(string|null $exceptionMessage) : void
Parameters
- $exceptionMessage : string|null
Tags
throwDeserializeResourceException()
public
static throwDeserializeResourceException(string $resource, string|null $exceptionMessage) : void
Parameters
- $resource : string
- $exceptionMessage : string|null
Tags
throwGenericExceptionWithMessage()
public
static throwGenericExceptionWithMessage(string|null $message) : void
Parameters
- $message : string|null
Tags
throwInvalidCurrencyException()
public
static throwInvalidCurrencyException(string $currencyCode) : void
Parameters
- $currencyCode : string
Tags
throwValidationException()
public
static throwValidationException(string $message) : void
Parameters
- $message : string
Tags
logErrorMessage()
private
static logErrorMessage(string $message) : void
Parameters
- $message : string