Sulu\Component\Rest\Exception\EntityNotFoundException::__construct PHP Méthode

__construct() public méthode

public __construct ( string $entity, integer $id, $previous = null )
$entity string The type of the entity, which was not found
$id integer The id of the entity, which was not found
    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);
    }
EntityNotFoundException