Commit 39afa6fe authored by Josh Pollock's avatar Josh Pollock
Browse files

use exception interfaces properly

parent 9452a158
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="39e46151-e7c1-422c-b495-7bbe1c526bbf" name="Default" comment="" />
<list default="true" id="39e46151-e7c1-422c-b495-7bbe1c526bbf" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
<change type="MOVED" beforePath="$PROJECT_DIR$/src/Exceptions/ContainerException.php" afterPath="$PROJECT_DIR$/src/Exceptions/NotFoundException.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Container.php" afterPath="$PROJECT_DIR$/src/Container.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Exceptions/Exception.php" afterPath="$PROJECT_DIR$/src/Exceptions/Exception.php" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -11,21 +16,21 @@
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="composer.json" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/composer.json">
<file leaf-file-name="ServiceServiceContainerTest.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tests/ServiceServiceContainerTest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
<caret line="28" column="44" lean-forward="false" selection-start-line="28" selection-start-column="44" selection-end-line="28" selection-end-column="44" />
<state relative-caret-position="400">
<caret line="83" column="5" lean-forward="false" selection-start-line="83" selection-start-column="5" selection-end-line="83" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ServiceServiceContainerTest.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/Tests/ServiceServiceContainerTest.php">
<file leaf-file-name="bootstrap.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tests/bootstrap.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="83" column="5" lean-forward="false" selection-start-line="83" selection-start-column="5" selection-end-line="83" selection-end-column="5" />
<state relative-caret-position="300">
<caret line="20" column="0" lean-forward="true" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
<folding />
</state>
</provider>
......@@ -34,84 +39,80 @@
<file leaf-file-name="Container.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Service/Container.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-17">
<state relative-caret-position="63">
<caret line="10" column="29" lean-forward="true" selection-start-line="10" selection-start-column="29" selection-end-line="10" selection-end-column="29" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ProvidesService.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Interfaces/ProvidesService.php">
<file leaf-file-name="ControlledContainer.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/ControlledContainer.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="23" lean-forward="false" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<folding>
<marker date="1522955420122" expanded="true" signature="106:198" ph=" Interface ProvidesService ..." />
<marker date="1522955420122" expanded="true" signature="226:354" ph="{...}" />
<marker date="1522955420122" expanded="true" signature="233:294" ph=" Register provider ..." />
</folding>
<state relative-caret-position="60">
<caret line="4" column="0" lean-forward="false" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Container.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Container.php">
<file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="15" column="64" lean-forward="false" selection-start-line="15" selection-start-column="64" selection-end-line="15" selection-end-column="64" />
<folding>
<element signature="e#48#101#0#PHP" expanded="true" />
</folding>
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ContainerTest.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tests/ContainerTest.php">
<file leaf-file-name="Container.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Container.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="49" column="45" lean-forward="false" selection-start-line="49" selection-start-column="45" selection-end-line="49" selection-end-column="45" />
<folding />
<state relative-caret-position="240">
<caret line="16" column="67" lean-forward="true" selection-start-line="16" selection-start-column="67" selection-end-line="16" selection-end-column="67" />
<folding>
<element signature="e#48#109#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Exception.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Exceptions/Exception.php">
<file leaf-file-name="ContainerInterface.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/vendor/psr/container/src/ContainerInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="91" lean-forward="false" selection-start-line="8" selection-start-column="91" selection-end-line="8" selection-end-column="91" />
<state relative-caret-position="240">
<caret line="18" column="36" lean-forward="true" selection-start-line="18" selection-start-column="36" selection-end-line="18" selection-end-column="36" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="NotImplemented.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Exceptions/NotImplemented.php">
<file leaf-file-name="ContainerExceptionInterface.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/vendor/psr/container/src/ContainerExceptionInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="14" column="0" lean-forward="true" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
<state relative-caret-position="120">
<caret line="10" column="37" lean-forward="false" selection-start-line="10" selection-start-column="10" selection-end-line="10" selection-end-column="37" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ContainerException.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Exceptions/ContainerException.php">
<file leaf-file-name="Exception.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/Exceptions/Exception.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="59" lean-forward="false" selection-start-line="10" selection-start-column="59" selection-end-line="10" selection-end-column="59" />
<caret line="10" column="91" lean-forward="false" selection-start-line="10" selection-start-column="91" selection-end-line="10" selection-end-column="91" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Arrayable.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Interfaces/Arrayable.php">
<file leaf-file-name="NotFoundException.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/src/Exceptions/NotFoundException.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="45">
<caret line="3" column="24" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
<state relative-caret-position="150">
<caret line="10" column="53" lean-forward="false" selection-start-line="10" selection-start-column="53" selection-end-line="10" selection-end-column="53" />
<folding />
</state>
</provider>
......@@ -129,12 +130,14 @@
<replace>$container = new \calderawp\CalderaContainers\Service\Container();</replace>
</replaceStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/Tests/CalderaInteropTestCase.php" />
<option value="$PROJECT_DIR$/Tests/TestCase.php" />
<option value="$PROJECT_DIR$/src/ControlledContainer.php" />
<option value="$PROJECT_DIR$/src/Interfaces/Arrayable.php" />
<option value="$PROJECT_DIR$/src/Interfaces/JsonArrayable.php" />
<option value="$PROJECT_DIR$/src/Interfaces/ContainsServices.php" />
......@@ -144,15 +147,17 @@
<option value="$PROJECT_DIR$/Tests/Mocks/Container.php" />
<option value="$PROJECT_DIR$/Tests/bootstrap.php" />
<option value="$PROJECT_DIR$/composer.json" />
<option value="$PROJECT_DIR$/src/Exceptions/Exception.php" />
<option value="$PROJECT_DIR$/src/Exceptions/ContainerException.php" />
<option value="$PROJECT_DIR$/src/Exceptions/NotImplemented.php" />
<option value="$PROJECT_DIR$/Tests/Mocks/Something.php" />
<option value="$PROJECT_DIR$/Tests/ContainerTest.php" />
<option value="$PROJECT_DIR$/Tests/Mocks/SomethingElse.php" />
<option value="$PROJECT_DIR$/src/Container.php" />
<option value="$PROJECT_DIR$/src/Interfaces/ProvidesService.php" />
<option value="$PROJECT_DIR$/Tests/ServiceServiceContainerTest.php" />
<option value="$PROJECT_DIR$/src/ControlledContainer.php" />
<option value="$PROJECT_DIR$/src/Container.php" />
<option value="$PROJECT_DIR$/src/Exceptions/NotFoundException.php" />
<option value="$PROJECT_DIR$/src/Exceptions/Exception.php" />
</list>
</option>
</component>
......@@ -164,11 +169,14 @@
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds">
<option name="x" value="296" />
<option name="x" value="618" />
<option name="y" value="22" />
<option name="width" value="1618" />
<option name="width" value="1296" />
<option name="height" value="1007" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
<flattenPackages />
......@@ -239,6 +247,7 @@
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" />
<recent name="$PROJECT_DIR$/Tests" />
</key>
</component>
......@@ -267,23 +276,23 @@
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1522953897768</updated>
<workItem from="1522953898944" duration="1555000" />
<workItem from="1522953898944" duration="1874000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="1555000" />
<option name="totallyTimeSpent" value="1874000" />
</component>
<component name="ToolWindowManager">
<frame x="296" y="22" width="1618" height="1007" extended-state="0" />
<frame x="618" y="22" width="1296" height="1007" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3141946" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32894737" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32894737" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
......@@ -332,16 +341,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/ControlledContainer.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-205">
<caret line="15" column="52" lean-forward="false" selection-start-line="15" selection-start-column="52" selection-end-line="15" selection-end-column="52" />
<folding>
<element signature="e#48#93#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Interfaces/CollectionFactory.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
......@@ -392,14 +391,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tests/bootstrap.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="90">
<caret line="6" column="31" lean-forward="false" selection-start-line="6" selection-start-column="31" selection-end-line="6" selection-end-column="31" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/composer.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
......@@ -424,30 +415,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Exceptions/Exception.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="8" column="91" lean-forward="false" selection-start-line="8" selection-start-column="91" selection-end-line="8" selection-end-column="91" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/vendor/psr/container/src/ContainerExceptionInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="10" column="10" lean-forward="false" selection-start-line="10" selection-start-column="10" selection-end-line="10" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Exceptions/ContainerException.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="59" lean-forward="false" selection-start-line="10" selection-start-column="59" selection-end-line="10" selection-end-column="59" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Exceptions/NotImplemented.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
......@@ -488,40 +455,104 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Container.php">
<entry file="file://$PROJECT_DIR$/src/Interfaces/ProvidesService.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="210">
<caret line="15" column="64" lean-forward="false" selection-start-line="15" selection-start-column="64" selection-end-line="15" selection-end-column="64" />
<state relative-caret-position="270">
<caret line="18" column="23" lean-forward="false" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<folding>
<element signature="e#48#101#0#PHP" expanded="true" />
<marker date="1522955420122" expanded="true" signature="106:198" ph=" Interface ProvidesService ..." />
<marker date="1522955420122" expanded="true" signature="226:354" ph="{...}" />
<marker date="1522955420122" expanded="true" signature="233:294" ph=" Register provider ..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tests/ServiceServiceContainerTest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="83" column="5" lean-forward="false" selection-start-line="83" selection-start-column="5" selection-end-line="83" selection-end-column="5" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tests/bootstrap.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="20" column="0" lean-forward="true" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Service/Container.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-17">
<state relative-caret-position="63">
<caret line="10" column="29" lean-forward="true" selection-start-line="10" selection-start-column="29" selection-end-line="10" selection-end-column="29" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Interfaces/ProvidesService.php">
<entry file="file://$PROJECT_DIR$/src/ControlledContainer.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="23" lean-forward="false" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
<state relative-caret-position="60">
<caret line="4" column="0" lean-forward="false" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.gitignore">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="jar://$APPLICATION_HOME_DIR$/plugins/php/lib/php.jar!/stubs/Core/Core_c.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="59">
<caret line="258" column="6" lean-forward="false" selection-start-line="258" selection-start-column="6" selection-end-line="258" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Container.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="16" column="67" lean-forward="true" selection-start-line="16" selection-start-column="67" selection-end-line="16" selection-end-column="67" />
<folding>
<marker date="1522955420122" expanded="true" signature="106:198" ph=" Interface ProvidesService ..." />
<marker date="1522955420122" expanded="true" signature="226:354" ph="{...}" />
<marker date="1522955420122" expanded="true" signature="233:294" ph=" Register provider ..." />
<element signature="e#48#109#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tests/ServiceServiceContainerTest.php">
<entry file="file://$PROJECT_DIR$/src/Exceptions/NotFoundException.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="400">
<caret line="83" column="5" lean-forward="false" selection-start-line="83" selection-start-column="5" selection-end-line="83" selection-end-column="5" />
<state relative-caret-position="150">
<caret line="10" column="53" lean-forward="false" selection-start-line="10" selection-start-column="53" selection-end-line="10" selection-end-column="53" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/vendor/psr/container/src/ContainerInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="18" column="36" lean-forward="true" selection-start-line="18" selection-start-column="36" selection-end-line="18" selection-end-column="36" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/vendor/psr/container/src/ContainerExceptionInterface.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="120">
<caret line="10" column="37" lean-forward="false" selection-start-line="10" selection-start-column="10" selection-end-line="10" selection-end-column="37" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/src/Exceptions/Exception.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="150">
<caret line="10" column="91" lean-forward="false" selection-start-line="10" selection-start-column="91" selection-end-line="10" selection-end-column="91" />
<folding />
</state>
</provider>
......
......@@ -3,6 +3,7 @@
namespace calderawp\CalderaContainers;
use calderawp\CalderaContainers\Exceptions\NotFoundException;
use calderawp\CalderaContainers\Interfaces\Arrayable;
use Psr\Container\ContainerInterface;
......@@ -55,6 +56,7 @@ abstract class Container implements \JsonSerializable, Arrayable, ContainerInter
if ($this->has($id)) {
return $this->getPimple()->offsetGet($id);
}
throw new NotFoundException(sprintf('Service %s not found in container', $id));
}
/**
......
......@@ -3,12 +3,14 @@
namespace calderawp\CalderaContainers\Exceptions;
use Psr\Container\ContainerExceptionInterface;
/**
* Class Exception
*
* Generic Exception - All exceptions from this library MUST be this or a subclass of this.
*/
class Exception extends \Exception
class Exception extends \Exception implements ContainerExceptionInterface
{
}
......@@ -6,11 +6,11 @@ namespace calderawp\CalderaContainers\Exceptions;
use Psr\Container\ContainerExceptionInterface;
/**
* Class ContainerException
* Class NotFoundException
*
* Exception to throw for ALL container related exceptions.
* Exception to throw when container does not contain service
*/
class ContainerException extends Exception implements ContainerExceptionInterface
class NotFoundException extends Exception implements ContainerExceptionInterface
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment