BitPay PHP SDK

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

Methods

throwApiExceptionByArrayResponse()

public static throwApiExceptionByArrayResponse(array<string|int, mixed>|null $body) : void
Parameters
$body : array<string|int, mixed>|null
Tags
throws
BitPayApiException

throwDeserializeResourceException()

public static throwDeserializeResourceException(string $resource, string|null $exceptionMessage) : void
Parameters
$resource : string
$exceptionMessage : string|null
Tags
throws
BitPayGenericException

logErrorMessage()

private static logErrorMessage(string $message) : void
Parameters
$message : string

        
On this page

Search results