From ffd8c1e773e785fa55e3f3384d4834d48e232360 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sat, 14 Jul 2012 00:14:36 +0300 Subject: [PATCH] [Form] add thrown exceptions to FormRegistryInterface --- src/Symfony/Component/Form/FormRegistryInterface.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/FormRegistryInterface.php b/src/Symfony/Component/Form/FormRegistryInterface.php index e4f4099dcd..55773d4d81 100644 --- a/src/Symfony/Component/Form/FormRegistryInterface.php +++ b/src/Symfony/Component/Form/FormRegistryInterface.php @@ -34,7 +34,8 @@ interface FormRegistryInterface * * @return ResolvedFormTypeInterface The type * - * @throws Exception\FormException if the type can not be retrieved from any extension + * @throws Exception\UnexpectedTypeException if the passed name is not a string + * @throws Exception\FormException if the type can not be retrieved from any extension */ public function getType($name); @@ -53,6 +54,9 @@ interface FormRegistryInterface * @param FormTypeInterface $type * * @return ResolvedFormTypeInterface + * + * @throws Exception\UnexpectedTypeException if the types parent {@link FormTypeInterface::getParent()} is not a string + * @throws Exception\FormException if the types parent can not be retrieved from any extension */ public function resolveType(FormTypeInterface $type);