WSException.class.php 364 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Exception class which can be thrown by
  4. * the WSHelper class.
  5. */
  6. class WSException extends Exception {
  7. /**
  8. * @param string The error message
  9. * @return void
  10. */
  11. public function __construct($msg) {
  12. $this->msg = $msg;
  13. }
  14. /**
  15. * @return void
  16. */
  17. public function Display() {
  18. echo $this->msg;
  19. }
  20. }
  21. ?>