aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/OCS/OCSBadRequestException.php
blob: c229468fb0ddcf8e8693cde86f8ebb01020b5146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\AppFramework\OCS;

use Exception;
use OCP\AppFramework\Http;

/**
 * Class OCSBadRequestException
 *
 * @since 9.1.0
 */
class OCSBadRequestException extends OCSException {
	/**
	 * OCSBadRequestException constructor.
	 *
	 * @param string $message
	 * @param Exception|null $previous
	 * @since 9.1.0
	 */
	public function __construct($message = '', ?Exception $previous = null) {
		parent::__construct($message, Http::STATUS_BAD_REQUEST, $previous);
	}
}