ooici/pyon — pull request #370 by daf (2013-06-05 20:24:35+00:00)
Title: Catch IonExceptions in outgoing interceptor stack on RPC response and react

Will wrap up the Exception with a custom message prepended to help understand flow.

```
/Users/asadeveloper/Documents/Dev/code/pyon/pyon/net/endpoint.py in _send(self, msg, headers, **kwargs)
901 log.info("RPCRequestEndpointUnit received an error (%d): %s", res_headers['status_code'], res_headers['error_message'])
902 ex = self.exception_factory.create_exception(res_headers["status_code"], res_headers["error_message"], stacks=stacks)
--> 903 raise ex
904
905 return res, res_headers

BadRequest: 400 - (while trying to send RPC response for conv-id ASA-DEVELOPERs-MacBook-Pro_local_40893-1) The message size 808 is larger than the max_message_size value of 256

><>
```