madlisp/src/MadLispUserException.php

22 lines
340 B
PHP
Raw Normal View History

<?php
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;
}
}