public function __construct($previous = null) { parent::__construct('Not your turn to play.', $previous); }
/** * @param string $name 'col' or 'row' * @param int $coords * @param \Exception $previous */ public function __construct($name, $coords, $previous = null) { parent::__construct(sprintf('Invalid range for %s, must be in [0,2], got "%d".', $name, $coords), $previous); }
/** * @param string $symbol * @param \Exception $previous */ public function __construct($symbol, $previous = null) { parent::__construct(sprintf('Unknown symbol: "%s"', $symbol), $previous); }