From c1f298361bffa09d2da2968365afa5843f16ed2b Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 24 Jul 2017 18:33:57 +0100 Subject: [PATCH] Create exception interfaces --- .../Component/ComponentExceptionInterface.php | 24 +++++++++++++++++++ .../ComponentGroup/ComponentGroup.php | 24 +++++++++++++++++++ .../Incident/IncidentExceptionInterface.php | 24 +++++++++++++++++++ .../InvalidIncidentTimestampException.php | 3 +-- .../IncidentUpdateExceptionInterface.php | 24 +++++++++++++++++++ .../Metric/MetricExceptionInterface.php | 24 +++++++++++++++++++ .../MetricPointExceptionInterface.php | 24 +++++++++++++++++++ .../Schedule/ScheduleExceptionInterface.php | 24 +++++++++++++++++++ .../SubscriberExceptionInterface.php | 24 +++++++++++++++++++ .../User/UserExceptionInterface.php | 24 +++++++++++++++++++ 10 files changed, 217 insertions(+), 2 deletions(-) create mode 100644 app/Bus/Exceptions/Component/ComponentExceptionInterface.php create mode 100644 app/Bus/Exceptions/ComponentGroup/ComponentGroup.php create mode 100644 app/Bus/Exceptions/Incident/IncidentExceptionInterface.php create mode 100644 app/Bus/Exceptions/IncidentUpdate/IncidentUpdateExceptionInterface.php create mode 100644 app/Bus/Exceptions/Metric/MetricExceptionInterface.php create mode 100644 app/Bus/Exceptions/MetricPoint/MetricPointExceptionInterface.php create mode 100644 app/Bus/Exceptions/Schedule/ScheduleExceptionInterface.php create mode 100644 app/Bus/Exceptions/Subscriber/SubscriberExceptionInterface.php create mode 100644 app/Bus/Exceptions/User/UserExceptionInterface.php diff --git a/app/Bus/Exceptions/Component/ComponentExceptionInterface.php b/app/Bus/Exceptions/Component/ComponentExceptionInterface.php new file mode 100644 index 00000000..211d81f7 --- /dev/null +++ b/app/Bus/Exceptions/Component/ComponentExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface ComponentExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/ComponentGroup/ComponentGroup.php b/app/Bus/Exceptions/ComponentGroup/ComponentGroup.php new file mode 100644 index 00000000..ac33a195 --- /dev/null +++ b/app/Bus/Exceptions/ComponentGroup/ComponentGroup.php @@ -0,0 +1,24 @@ + + */ +interface ComponentGroupExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/Incident/IncidentExceptionInterface.php b/app/Bus/Exceptions/Incident/IncidentExceptionInterface.php new file mode 100644 index 00000000..f6aa9be7 --- /dev/null +++ b/app/Bus/Exceptions/Incident/IncidentExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface IncidentExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/Incident/InvalidIncidentTimestampException.php b/app/Bus/Exceptions/Incident/InvalidIncidentTimestampException.php index 3843c180..8d5d8708 100644 --- a/app/Bus/Exceptions/Incident/InvalidIncidentTimestampException.php +++ b/app/Bus/Exceptions/Incident/InvalidIncidentTimestampException.php @@ -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 */ -class InvalidIncidentTimestampException extends Exception implements ExceptionInterface +class InvalidIncidentTimestampException extends Exception implements IncidentExceptionInterface { // } diff --git a/app/Bus/Exceptions/IncidentUpdate/IncidentUpdateExceptionInterface.php b/app/Bus/Exceptions/IncidentUpdate/IncidentUpdateExceptionInterface.php new file mode 100644 index 00000000..3abb87db --- /dev/null +++ b/app/Bus/Exceptions/IncidentUpdate/IncidentUpdateExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface IncidentUpdateExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/Metric/MetricExceptionInterface.php b/app/Bus/Exceptions/Metric/MetricExceptionInterface.php new file mode 100644 index 00000000..51dd0f44 --- /dev/null +++ b/app/Bus/Exceptions/Metric/MetricExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface MetricExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/MetricPoint/MetricPointExceptionInterface.php b/app/Bus/Exceptions/MetricPoint/MetricPointExceptionInterface.php new file mode 100644 index 00000000..a0fe628c --- /dev/null +++ b/app/Bus/Exceptions/MetricPoint/MetricPointExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface MetricPointExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/Schedule/ScheduleExceptionInterface.php b/app/Bus/Exceptions/Schedule/ScheduleExceptionInterface.php new file mode 100644 index 00000000..61059820 --- /dev/null +++ b/app/Bus/Exceptions/Schedule/ScheduleExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface ScheduleExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/Subscriber/SubscriberExceptionInterface.php b/app/Bus/Exceptions/Subscriber/SubscriberExceptionInterface.php new file mode 100644 index 00000000..afee3735 --- /dev/null +++ b/app/Bus/Exceptions/Subscriber/SubscriberExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface SubscriberExceptionInterface extends ExceptionInterface +{ + // +} diff --git a/app/Bus/Exceptions/User/UserExceptionInterface.php b/app/Bus/Exceptions/User/UserExceptionInterface.php new file mode 100644 index 00000000..e0b3d8ae --- /dev/null +++ b/app/Bus/Exceptions/User/UserExceptionInterface.php @@ -0,0 +1,24 @@ + + */ +interface UserExceptionInterface extends ExceptionInterface +{ + // +}