for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* @package s9e\Bencode
* @copyright Copyright (c) The s9e authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\Bencode\Exceptions;
use InvalidArgumentException;
class EncodingException extends InvalidArgumentException
{
* @var mixed Value that caused this exception to be thrown
protected mixed $value;
public function __construct(string $message, mixed $value)
$this->value = $value;
parent::__construct($message);
}
* Return the value that caused this exception to be thrown
*
* @return mixed
public function getValue()
return $this->value;