CoreFiles by mySites.guru
ParserException.php29 lines, 703 bytes, from Joomla_5.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta1
md5
e107103a0c8c73707a8d8f1f68a2fc32
sha1
525cad17ea939f262346eee6a71857b4b81982e4
sha256
1edde99e737246dbe27bd385359b0e28be6e2a42e926d872a251faef9edc9ce1
<?php
/*
 * This file is part of the PHPASN1 library.
 *
 * Copyright © Friedrich Große <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace FG\ASN1\Exception;

class ParserException extends \Exception
{
    private $errorMessage;
    private $offset;

    public function __construct($errorMessage, $offset)
    {
        $this->errorMessage = $errorMessage;
        $this->offset = $offset;
        parent::__construct("ASN.1 Parser Exception at offset {$this->offset}: {$this->errorMessage}");
    }

    public function getOffset()
    {
        return $this->offset;
    }
}

The same content is in 137 releases, Joomla 4.0.0-beta to 5.0.0-beta2. See them all, or every version of this file.