kahlan/kahlan

View on GitHub
src/Matcher/AnyException.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
namespace Kahlan\Matcher;

use Exception;

class AnyException extends Exception
{
    /**
     * The exception message.
     *
     * @var string
     */
    protected $message = '';

    /**
     * The exception message.
     *
     * @param string  $message  The exception message.
     * @param integer $code     The exception code.
     * @param string  $previous The previous exception.
     */
    public function __construct($message = '', $code = 0, $previous = null)
    {
        parent::__construct($message, $code, $previous);
        $this->message = $message;
        $this->code = $code;
    }
}