mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 21:35:03 +00:00
28 lines
443 B
PHP
28 lines
443 B
PHP
<?php
|
|
/**
|
|
* MadLisp language
|
|
* @link http://madlisp.com/
|
|
* @copyright Copyright (c) 2020 Pekka Laiho
|
|
*/
|
|
|
|
namespace MadLisp;
|
|
|
|
class MadLispUserException extends \Exception
|
|
{
|
|
protected $value;
|
|
|
|
public function __construct($value)
|
|
{
|
|
if (is_string($value)) {
|
|
parent::__construct($value);
|
|
}
|
|
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|