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

  • AccessDeniedError
  • ApiError
  • ConcurrentModificationError
  • DiscountCodeNonApplicableError
  • DuplicateAttributeValueError
  • DuplicateAttributeValuesError
  • DuplicateFieldError
  • DuplicateFieldWithConflictingResourceError
  • DuplicatePriceScopeError
  • DuplicateVariantValuesError
  • EnumValueIsUsedError
  • ErrorContainer
  • InsufficientScopeError
  • InvalidCredentialsError
  • InvalidCurrentPasswordError
  • InvalidFieldError
  • InvalidItemShippingDetailsError
  • InvalidOperationError
  • InvalidSubjectError
  • InvalidTokenError
  • LanguageUsedInStoresError
  • MatchingPriceNotFoundError
  • Message
  • MissingRoleOnChannelError
  • MissingTaxRateForCountryError
  • NoMatchingProductDiscountFoundError
  • OutOfStockError
  • PriceChangedError
  • ProjectNotConfiguredForLanguagesError
  • QueryTimedOutError
  • RequiredFieldError
  • ResourceNotFoundError
  • ShippingMethodDoesNotMatchCartError

Exceptions

  • ApiException
  • ApiServiceException
  • BadGatewayException
  • BadRequestException
  • ClientErrorException
  • ConcurrentModificationException
  • DeprecatedException
  • ErrorResponseException
  • ForbiddenException
  • GatewayTimeoutException
  • InternalServerErrorException
  • InvalidArgumentException
  • InvalidClientCredentialsException
  • InvalidTokenException
  • NotFoundException
  • ServerErrorException
  • ServiceUnavailableException
  • UnauthorizedException
  • UpdateActionLimitException

Class ApiException

Base exception for responses with http status code different than 200 or 201

Exception implements Throwable
Extended by Commercetools\Core\Error\ApiException

Direct known subclasses

Commercetools\Core\Error\ApiServiceException

Indirect known subclasses

Commercetools\Core\Error\BadGatewayException, Commercetools\Core\Error\BadRequestException, Commercetools\Core\Error\NotFoundException, Commercetools\Core\Error\ServerErrorException, Commercetools\Core\Error\ServiceUnavailableException, Commercetools\Core\Error\UnauthorizedException, Commercetools\Core\Error\ClientErrorException, Commercetools\Core\Error\ConcurrentModificationException, Commercetools\Core\Error\ErrorResponseException, Commercetools\Core\Error\ForbiddenException, Commercetools\Core\Error\GatewayTimeoutException, Commercetools\Core\Error\InternalServerErrorException, Commercetools\Core\Error\InvalidClientCredentialsException, Commercetools\Core\Error\InvalidTokenException

Namespace: Commercetools\Core\Error
Located at Core/Error/ApiException.php

Methods summary

public
# __construct( $message, Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response = null, Exception $previous = null )

Overrides

Exception::__construct
public static
# create( Psr\Http\Message\RequestInterface $request, Psr\Http\Message\ResponseInterface $response = null, Exception $previous = null )

Parameters

$request
$response
$previous
public Psr\Http\Message\RequestInterface
# getRequest( )

Returns

Psr\Http\Message\RequestInterface
public Psr\Http\Message\ResponseInterface
# getResponse( )

Returns

Psr\Http\Message\ResponseInterface
public array
# getErrors( )

Returns

array
public string
# getResponseMessage( )

Returns

string
public string
# getResponseStatusCode( )

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

PHP SDK API documentation generated by ApiGen