Manual:MWException.php

Extensible class for throwing exceptions.

Public methods

edit
  • isLoggable() - whether to log this exception in the exception debug log.
  • useMessageCache() - whether the extension uses the Message class/wfMessage to get i18n-ed messages.
  • msg() - get a message from i18n.
  • getPageTitle() - return the title of the page when reporting this error in a HTTP response.
  • reportHTML() - output the exception report using HTML.
  • report() - output a report about the exception and takes care of formatting. It will be either HTML or plain text based on isCommandLine().
  • isCommandLine() - check whether we are in command line mode or not to report the exception in the correct format.
  • Not recommended for third-party use:
    • getHTML() - use MWExceptionRenderer::getHTML instead.
    • getText() - ue MWExceptionRenderer::getText instead.

Extended by

edit

See also

edit
  NODES
HOME 1
languages 2
text 5