Skip to content
Browse files

Throw InvalidArgumentException

  • Loading branch information...
1 parent b76c2c4 commit 032c33a245b766ff5259143af45cf1bfd98322a7 @chregu chregu committed Mar 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Annotation/Groups.php
View
4 Annotation/Groups.php
@@ -18,7 +18,7 @@
namespace JMS\SerializerBundle\Annotation;
-use JMS\SerializerBundle\Exception\RuntimeException;
+use JMS\SerializerBundle\Exception\InvalidArgumentException;
/**
* @Annotation
@@ -31,7 +31,7 @@
public function __construct(array $values)
{
if (!isset($values['value']) || !is_array($values['value'])) {
- throw new RuntimeException('$groups must be a array.');
+ throw new InvalidArgumentException('$groups must be a array.');
}
$this->groups = $values['value'];
}

0 comments on commit 032c33a

Please sign in to comment.
Something went wrong with that request. Please try again.