Isswp101\Persimmon\Exceptions\ModelNotFoundException::__construct PHP Method

__construct() public method

public __construct ( $class, $id = null )
    public function __construct($class, $id = null)
    {
        $reflection = new ReflectionClass($class);
        $model = $reflection->getShortName();
        if ($id) {
            $message = sprintf('Model `%s` not found by id `%s`', $model, $id);
        } else {
            $message = sprintf('Model `%s` not found', $model);
        }
        parent::__construct($message);
    }
ModelNotFoundException