mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-08-21 03:54:06 +02:00
.github
.tx
appinfo
bin
css
docs
img
js
l10n
lib
AppInfo
Command
Config
Controller
Cron
Db
Explore
Fetcher
Hooks
Migration
Plugin
Scraper
Search
Service
Exceptions
ServiceConflictException.php
ServiceException.php
ServiceNotFoundException.php
ServiceValidationException.php
FeedServiceV2.php
FolderServiceV2.php
ImportService.php
ItemServiceV2.php
OpmlService.php
Service.php
ShareService.php
StatusService.php
UpdaterService.php
Settings
Utility
screenshots
src
templates
tests
.editorconfig
.eslintrc.js
.gitignore
.gitmodules
.mailmap
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
COPYING
Makefile
README.md
babel.config.js
composer.json
composer.lock
mkdocs.yml
package-lock.json
package.json
phpstan.neon.dist
phpunit.xml
stylelint.config.js
webpack.config.js
34 lines
800 B
PHP
34 lines
800 B
PHP
<?php
|
|
/**
|
|
* Nextcloud - News
|
|
*
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later. See the COPYING file.
|
|
*
|
|
* @author Alessandro Cosentino <cosenal@gmail.com>
|
|
* @author Bernhard Posselt <dev@bernhard-posselt.com>
|
|
* @copyright 2012 Alessandro Cosentino
|
|
* @copyright 2012-2014 Bernhard Posselt
|
|
*/
|
|
|
|
namespace OCA\News\Service\Exceptions;
|
|
|
|
use Exception;
|
|
use OCP\AppFramework\Db\IMapperException;
|
|
|
|
/**
|
|
* Class ServiceNotFoundException
|
|
*
|
|
* @package OCA\News\Service\Exceptions
|
|
*/
|
|
class ServiceNotFoundException extends ServiceException
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function from(IMapperException $exception): ServiceException
|
|
{
|
|
return new self($exception->getMessage(), $exception->getCode(), $exception);
|
|
}
|
|
}
|