1 <?php namespace CupOfTea\Chain\Exceptions;
2
3 use Exception;
4
5 class WrongClassException extends Exception
6 {
7
8 public function __construct($class, $isnt, $code = 0, Exception $previous = null)
9 {
10 $message = "The class $class is not an instance of $isnt as required by " . Chain::class . "::requires().";
11
12 parent::__construct($message, $code, $previous);
13 }
14
15 }
16