public function __construct($entity, $id, $previous = null) { $this->entity = $entity; $this->id = $id; $message = 'Entity with the type "' . $entity . '" and the id "' . $id . '" not found.'; parent::__construct($message, 0, $previous); }