Files
nextcloud-docs/developer_manual/app/appframework/api/middleware_security_securityexception.rst
Bernhard Posselt a5761ca8d0 structure changes
2013-03-13 17:13:35 +01:00

27 lines
539 B
ReStructuredText

SecurityException
=================
Thrown when the security middleware encounters a security problem
.. php:namespace:: OCA\AppFramework\Middleware\Security
.. php:class:: SecurityException
.. php:method:: __construct($msg, $ajax)
:param string $msg: the security error message
:param bool $ajax: true if it resulted because of an ajax request
.. php:method:: isAjax()
:returns bool: true if exception resulted because of an ajax request
Used to check if a security exception occured in an ajax request