2015-08-03 12:06:07 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-08-03 12:06:07 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\OCS;
|
|
|
|
|
|
|
|
|
|
class Exception extends \Exception {
|
2023-07-05 13:43:36 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private Result $result,
|
|
|
|
|
) {
|
2017-07-20 10:25:57 -04:00
|
|
|
parent::__construct();
|
2015-08-03 12:06:07 -04:00
|
|
|
}
|
|
|
|
|
|
2023-07-05 13:43:36 -04:00
|
|
|
public function getResult(): Result {
|
2015-08-03 12:06:07 -04:00
|
|
|
return $this->result;
|
|
|
|
|
}
|
|
|
|
|
}
|