redding/sanford — pull request #24 by jcredding (2012-11-29 21:33:53+00:00)
Title: Changes to handle invalid sanford-protocol requests throwing exceptions

When an invalid `Sanford::Protocol::Request` is created, it now throws
exceptions. These changes make `Sanford` work with that behavior. Previously,
Sanford would call the `valid?` method and throw it's own exceptions.

I removed the previous validating logic from the `Connection` class and then added the exception that is now being thrown to the `ExceptionHandler`. This doesn't change any of Sanford's behavior.