Fixed exception handling

Catching an exception on the server side and throwing it in the client code didn't worked for me.
May the fields $this->validator and $this->arguments are unused.
Merge pull request #1 from stackcoder/patch-1

Fixed exception handling (thanks to @stackcoder)