BCGArgumentException.php 600 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. *--------------------------------------------------------------------
  4. *
  5. * Argument Exception
  6. *
  7. *--------------------------------------------------------------------
  8. * Copyright (C) Jean-Sebastien Goupil
  9. * http://www.barcodephp.com
  10. */
  11. class BCGArgumentException extends Exception {
  12. protected $param;
  13. /**
  14. * Constructor with specific message for a parameter.
  15. *
  16. * @param string $message
  17. * @param string $param
  18. */
  19. public function __construct($message, $param) {
  20. $this->param = $param;
  21. parent::__construct($message, 20000);
  22. }
  23. }
  24. ?>