aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/OCS/Exception.php
blob: eca8ec26df07f7bdafcfecf1e6d24c9a0f77cba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */
namespace OC\OCS;

class Exception extends \Exception {
	public function __construct(
		private Result $result,
	) {
		parent::__construct();
	}

	public function getResult(): Result {
		return $this->result;
	}
}