chippyash/Matrix

View on GitHub
src/Chippyash/Matrix/Exceptions/VectorException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/*
 * Matrix library
 *
 * @author Ashley Kitson <akitson@zf4.biz>
 * @copyright Ashley Kitson, UK, 2014
 * @licence GPL V3 or later : http://www.gnu.org/licenses/gpl.html
 */

namespace Chippyash\Matrix\Exceptions;

/**
 * Base Vector exception
 */
class VectorException extends MatrixException
{

    protected $msgTpl = "Vector exception: %s";

    public function __construct($cause = 'unknown', $code = -1, $previous = null)
    {
        $msg = sprintf($this->msgTpl, $cause);
        parent::__construct($msg, $code, $previous);
    }
}