Create exception interfaces

This commit is contained in:
James Brooks
2017-07-24 18:33:57 +01:00
parent ddc583c90f
commit c1f298361b
10 changed files with 217 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\Component;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the component exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface ComponentExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\ComponentGroup;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the component group exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface ComponentGroupExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\Incident;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the incident exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface IncidentExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -11,7 +11,6 @@
namespace CachetHQ\Cachet\Bus\Exceptions\Incident;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
use Exception;
/**
@@ -19,7 +18,7 @@ use Exception;
*
* @author James Brooks <james@alt-three.com>
*/
class InvalidIncidentTimestampException extends Exception implements ExceptionInterface
class InvalidIncidentTimestampException extends Exception implements IncidentExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\IncidentUpdate;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the incident update exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface IncidentUpdateExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\Metric;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the metric exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface MetricExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\MetricPoint;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the metric point exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface MetricPointExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\Schedule;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the schedule exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface ScheduleExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\Subscriber;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the subscriber exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface SubscriberExceptionInterface extends ExceptionInterface
{
//
}

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CachetHQ\Cachet\Bus\Exceptions\User;
use CachetHQ\Cachet\Bus\Exceptions\ExceptionInterface;
/**
* This is the user exception interface.
*
* @author James Brooks <james@alt-three.com>
*/
interface UserExceptionInterface extends ExceptionInterface
{
//
}