1<?php 2/** 3 * @author Lukas Reschke <lukas@statuscode.ch> 4 * @author Roeland Jago Douma <rullzer@owncloud.com> 5 * 6 * @copyright Copyright (c) 2018, ownCloud GmbH 7 * @license AGPL-3.0 8 * 9 * This code is free software: you can redistribute it and/or modify 10 * it under the terms of the GNU Affero General Public License, version 3, 11 * as published by the Free Software Foundation. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU Affero General Public License for more details. 17 * 18 * You should have received a copy of the GNU Affero General Public License, version 3, 19 * along with this program. If not, see <http://www.gnu.org/licenses/> 20 * 21 */ 22namespace OCP\Share\Exceptions; 23use OC\HintException; 24 25/** 26 * Class GenericEncryptionException 27 * 28 * @package OCP\Share\Exceptions 29 * @since 9.0.0 30 */ 31class GenericShareException extends HintException { 32 33 /** 34 * @param string $message 35 * @param string $hint 36 * @param int $code 37 * @param \Exception $previous 38 * @since 9.0.0 39 */ 40 public function __construct($message = '', $hint = '', $code = 0, \Exception $previous = null) { 41 if (empty($message)) { 42 $message = 'Unspecified share exception'; 43 } 44 parent::__construct($message, $hint, $code, $previous); 45 } 46} 47