zircote/swagger-php — pull request #90 by steffkes (2013-06-19 11:26:12+00:00)
Title: allow exception instead of code and reason for ErrorResponse

Just a quick thought, mainly about DRY. `ErrorResponse` accepts `code` and `reason` which i would have to specify directly in the DocBlock. we're using Exceptions and have therefore to write the same things at least twice .. and like always, chances are, that one gets lost :/

what i imagine would be something like this:

/**
* ...
* @Swagger\Annotations\ErrorResponse( code="403", reason="Object is not assigned to your account" ),
* @Swagger\Annotations\ErrorResponse( exception="Project\Domain\Exception\ObjectNotFoundException" )
* ...
*/

which allows you to specify an Exception instead of plain text. The included change is really simple, right now missing additional `instanceof` checks and things like this - just wanted to know if you think it's worth to work on :)