Fehlermeldungen in PHP

  • trigger_error
  • http://php.net/manual/de/function.trigger-error.php
  • Default: E_USER_NOTICE (E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE) und E_USER_DEPRECATED
  • if (assert($divisor == 0)) {
        trigger_error("Kann nicht durch 0 teilen", E_USER_ERROR);
    }
  • throw() und catch()

Klassifikation

Error PHP