byzhang / terrastore

Automatically exported from code.google.com/p/terrastore
Other
0 stars 0 forks source link

Provide a way to throw exceptions from Aggregator, Condition and Function operators. #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Implementors of Aggregator, Condition and Function operators should be able to 
throw a proper exception to communicate errors or just exceptional conditions 
to the outside.

Original issue reported on code.google.com by sergio.b...@gmail.com on 26 Apr 2011 at 9:57

GoogleCodeExporter commented 9 years ago
Implementors can now throw an OperationException, providing a proper 
ErrorMessage.
The ErrorMessage contains an HTTP error code (with some error codes listed as 
static fields in the ErrorMessage itself), and a custom error message; only 
server-related error codes (>= 500) will be printed by the server side with the 
full stacktrace.

Original comment by sergio.b...@gmail.com on 26 Apr 2011 at 10:01