<?php
namespace Fifa\ConnectServiceBus\Sdk\ExceptionHandler\Handler;

use Fifa\ConnectServiceBus\Sdk\Api\ApiException;
use Fifa\ConnectServiceBus\Sdk\Exception\FifaConnectServiceBusSdkException;

/**
 * Interface HandlerInterface
 * @package Fifa\ConnectServiceBus\Sdk\ExceptionHandler\Handler
 */
interface HandlerInterface
{
    /**
     * Method handles an ApiException
     *
     * @param ApiException $e
     * @return FifaConnectServiceBusSdkException|null
     * @noinspection PhpMissingReturnTypeInspection - covariance since 7.4
     */
    public function handle(ApiException $e);
}