Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • AbstractApiResponse
  • ErrorResponse
  • PagedQueryResponse
  • PagedSearchResponse
  • ResourceResponse

Interfaces

  • ApiPromiseGetInterface
  • ApiResponseInterface

Class ErrorResponse

Commercetools\Core\Response\AbstractApiResponse implements Commercetools\Core\Response\ApiResponseInterface, Commercetools\Core\Model\Common\ContextAwareInterface, Commercetools\Core\Response\ApiPromiseGetInterface uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Response\ErrorResponse
Namespace: Commercetools\Core\Response
Located at Core/Response/ErrorResponse.php

Methods summary

public
# __construct( Exception $exception, Commercetools\Core\Request\ClientRequestInterface $request, Psr\Http\Message\ResponseInterface $response, Commercetools\Core\Model\Common\Context $context = null )

ErrorResponse constructor.

ErrorResponse constructor.

Parameters

$exception
$response
$request
$response
$exception
$context

Overrides

Commercetools\Core\Response\AbstractApiResponse::__construct
public boolean
# isError( )

Returns

boolean

Overrides

Commercetools\Core\Response\AbstractApiResponse::isError
public
# getMessage( )
public Exception
# getException( )

Returns

Exception

Methods inherited from Commercetools\Core\Response\AbstractApiResponse

getBody(), getCorrelationId(), getErrors(), getHeader(), getHeaders(), getPromise(), getRequest(), getResponse(), getStatusCode(), then(), toArray(), toObject(), wait()

Methods inherited from Commercetools\Core\Model\Common\ContextAwareInterface

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods used from Commercetools\Core\Model\Common\ContextTrait

getContext(), getContextCallback(), setContext(), setContextIfNull()

Constants summary

Constants inherited from Commercetools\Core\Response\AbstractApiResponse

X_CORRELATION_ID

PHP SDK API documentation generated by ApiGen