CoreFiles by mySites.guru
ExceptionHandlerInterface.php36 lines, 791 bytes, from Joomla_5.0.2-Stable-Full_Package.zip
Raw History Compare with 5.0.1
md5
4a560475d014b9a8e6c4b06e2ec65bde
sha1
46c453dfc5d5229ccead378480c4682ad980320d
sha256
70fe341ab580f694e17a1e727f66563bfd12df71485b5783a4fa5883ad7400d8
<?php

/*
 * This file is part of JSON-API.
 *
 * (c) Toby Zerner <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Tobscure\JsonApi\Exception\Handler;

use Exception;

interface ExceptionHandlerInterface
{
    /**
     * If the exception handler is able to format a response for the provided exception,
     * then the implementation should return true.
     *
     * @param \Exception $e
     *
     * @return bool
     */
    public function manages(Exception $e);

    /**
     * Handle the provided exception.
     *
     * @param \Exception $e
     *
     * @return \Tobscure\JsonApi\Exception\Handler\ResponseBag
     */
    public function handle(Exception $e);
}

The same content is in 295 releases, Joomla 4.0.0-alpha7 to 6.3.0-alpha1. See them all, or every version of this file.