Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • Rest
      • Checkout
      • OrderManagement
      • Transport
        • Exception

Interfaces

  • ConnectorException

Class ConnectorException

ConnectorException is used to represent a API error response.

Exception implements Throwable
Extended by RuntimeException
Extended by Klarna\Rest\Transport\Exception\ConnectorException
Namespace: Klarna\Rest\Transport\Exception
Located at Klarna/Rest/Transport/Exception/ConnectorException.php

Methods summary

public
# __construct( array $data, GuzzleHttp\Exception\RequestException $prev )

Constructs a connector exception instance.

Constructs a connector exception instance.

Parameters

$data
Error data
$prev
Previous exception

Overrides

Exception::__construct
public string
# getErrorCode( )

Gets the API error code for this exception.

Gets the API error code for this exception.

Returns

string
public array
# getMessages( )

Gets the API error messages for this exception.

Gets the API error messages for this exception.

Returns

array
public string
# getCorrelationId( )

Gets the API correlation ID for this exception.

Gets the API correlation ID for this exception.

Returns

string
public GuzzleHttp\Message\ResponseInterface
# getResponse( )

Gets the HTTP response for this API error.

Gets the HTTP response for this API error.

Returns

GuzzleHttp\Message\ResponseInterface

Methods inherited from Exception

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

Magic methods summary

Properties summary

protected string $errorCode

API response error code.

API response error code.

#
protected string[] $messages

API response error messages.

API response error messages.

#
protected string $correlationId

API response error correlation ID.

API response error correlation ID.

#

Properties inherited from Exception

$code, $file, $line, $message

API documentation generated by ApiGen