Files
nextcloud-docs/developer_manual/app/classes/appframework/middleware_security_securityexception.rst
Bernhard Posselt 7073f29087 structural changes
2013-03-12 17:20:15 +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