BCGParseException.php 604 B

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