r2836 Added EntityNotFoundException to spotEntity()
[racktables] / inc / exceptions.php
1 <?php
2
3 class EntityNotFoundException extends Exception {
4 private $entity;
5 private $id;
6 function __construct($entity, $id)
7 {
8 parent::__construct ("Object '$entity'#'$id' does not exist");
9 $this->entity = $entity;
10 $this->id = $id;
11 }
12 function getEntity()
13 {
14 return $this->entity;
15 }
16 function getId()
17 {
18 return $this->id;
19 }
20 }