コード例 #1
0
 public function __construct($previous = null)
 {
     parent::__construct('Not your turn to play.', $previous);
 }
コード例 #2
0
 /**
  * @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);
 }
コード例 #3
0
 /**
  * @param string $symbol
  * @param \Exception $previous
  */
 public function __construct($symbol, $previous = null)
 {
     parent::__construct(sprintf('Unknown symbol: "%s"', $symbol), $previous);
 }