1
0

Exception.php 396 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OC\OCS;
  8. class Exception extends \Exception {
  9. public function __construct(
  10. private Result $result,
  11. ) {
  12. parent::__construct();
  13. }
  14. public function getResult(): Result {
  15. return $this->result;
  16. }
  17. }