mossadal/math-parser

View on GitHub
src/MathParser/Exceptions/MathParserException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/*
 * @package     Exceptions
 * @author      Frank Wikström <frank@mossadal.se>
 * @copyright   2015 Frank Wikström
 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
 *
 */

/**
  * @namespace MathParser::Exceptions
  *
  * Exceptions thrown by the MathParser library.
  */
namespace MathParser\Exceptions;

/**
 * Base class for the exceptions thrown by the MathParser library.
 */
abstract class MathParserException extends \Exception
{
    /** @var string Additional information about the exception. */
    protected $data;

    /**
     * Get additional information about the exception.
     *
     * @return string
     */
    public function getData()
    {
        return $this->data;
    }

}