mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
29 lines
541 B
ReStructuredText
29 lines
541 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
|
|
|
|
|