Skip to content

Conversation

@Andreyco
Copy link
Contributor

@Andreyco Andreyco commented Dec 8, 2014

When requesting invalid API version, throw an exception which gets transformed into JSON response.
Fixes #281

When requesting invalid API version, throw an exception which gets transformed into JSON response.
@jasonlewis
Copy link
Contributor

Hm, I think I'd prefer the exception to be thrown from within the router and not the collection.

Also be mindful of the recent docblock changes. Seems your commit has re-adjusted.

@jasonlewis jasonlewis closed this Dec 8, 2014
@jasonlewis jasonlewis reopened this Dec 8, 2014
@Andreyco
Copy link
Contributor Author

Andreyco commented Dec 8, 2014

I corrected docblocks, editor package messed them up, sorry.

Also I didn't want to nest another if statement into existing if-else statement so I extracted it out. Hope you agree.

@jasonlewis
Copy link
Contributor

Still seems to be several docblock changes in the GroupCollection file. I'll merge this in the morning though and if you haven't got around to adjusting it I'll fix it up. Cheers!

@Andreyco
Copy link
Contributor Author

Andreyco commented Dec 8, 2014

Ouch, sorry. I reverted the GroupCollection completely!

jasonlewis added a commit that referenced this pull request Dec 10, 2014
Throw an Exception for invalid API version
@jasonlewis jasonlewis merged commit 0348688 into dingo:master Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API crashes (internaly) when requesting non-existing API version

2 participants