Skip to content

Commit

Permalink
GetURI exception checks should throw RuntimeException
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Jan 21, 2014
1 parent 7a59bd4 commit 3d81b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/templates/endpoint.twig
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class {{ className|title }} extends AbstractEndpoint
{% for part, info in data.url.parts %}
{% if info.required == true %}
if (isset($this->{{ part }}) !== true) {
throw new Exceptions\BadMethodCallException(
throw new Exceptions\RuntimeException(
'{{ part }} is required for {{ className }}'
);
}
Expand Down

0 comments on commit 3d81b00

Please sign in to comment.