You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Dmitriy Ryaboy <dv...@gmail.com> on 2010/08/16 01:16:19 UTC
preferred way to handle errors in LoadFunc constructor?
Is there a preferred way to handle errors in LoadFunc initialization?
I suspect that if I throw an exception in the constructor, the Pig process
might die, which is not friendly, esp. to people working in the shell; but
just printing out an error can obviously lead to trouble later on, as well.
Ideas?
-D
Re: preferred way to handle errors in LoadFunc constructor?
Posted by Thejas M Nair <te...@yahoo-inc.com>.
Grunt shell should catch the exceptions and print the error. I think it must be doing that already .
In non-interactive mode, I think it would be OK for the process to die in this situation.
-Thejas
On 8/15/10 4:16 PM, "Dmitriy Ryaboy" <dv...@gmail.com> wrote:
Is there a preferred way to handle errors in LoadFunc initialization?
I suspect that if I throw an exception in the constructor, the Pig process
might die, which is not friendly, esp. to people working in the shell; but
just printing out an error can obviously lead to trouble later on, as well.
Ideas?
-D