File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66namespace Interop \Container ;
77
8+ use Interop \Container \Exception \ContainerException ;
89use Interop \Container \Exception \NotFoundException ;
910
1011/**
@@ -17,7 +18,9 @@ interface ContainerInterface
1718 *
1819 * @param string $id Identifier of the entry to look for.
1920 *
20- * @throws NotFoundException No entry was found for this identifier.
21+ * @throws NotFoundException No entry was found for this identifier.
22+ * @throws ContainerException Error while retrieving the entry.
23+ *
2124 * @return mixed Entry.
2225 */
2326 public function get ($ id );
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
4+ */
5+
6+ namespace Interop \Container \Exception ;
7+
8+ /**
9+ * Base interface representing a generic exception in a container.
10+ */
11+ interface ContainerException
12+ {
13+ }
Original file line number Diff line number Diff line change 88/**
99 * No entry was found in the container.
1010 */
11- interface NotFoundException
11+ interface NotFoundException extends ContainerException
1212{
1313}
You can’t perform that action at this time.
0 commit comments