netdudes/DataSourceryBundle

View on GitHub
Query/Exception/MethodNotAllowedException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Netdudes\DataSourceryBundle\Query\Exception;

use Exception;

class MethodNotAllowedException extends \Exception
{
    public function __construct($class, $method, $reason = "", \Exception $previous = null)
    {
        $message = "Method '$method' is not allowed for class '$class'" . ($reason ? ': ' . $reason : "");
        parent::__construct($message, 0, $previous);
    }
}