Exception-Class - Re: How to Control Exit Values?

Posted on Tue Feb 28 21:14:26 2006 by je44ery in response to 1851 (See the whole thread of 5)
Re: How to Control Exit Values?
I knew I wasn't hallucinating!
Missing file during compare Results were: Trace begun at My/Class/Compare.pm line 133 My::Class::Compare::_compare('My::Class::Compare=SCALAR(0x3036f5a8)', 'ARRAY(0x302a79a4)', 'ARRAY(0 +x3068ae40)') called at My/Class/Compare.pm line 173 My::Class::Compare::run('My::Class::Compare=SCALAR(0x3036f5a8)') called at do_something.pl line 66 root@mybox:/home/me # echo $? 0
I have Exception::Class::Base->Trace(1); so that is why the full trace appears. I also know it was my Exception that was called because of the first 2 lines. Those are my own error messages from my overridden full_message() method of the exception class. So here is an example of an exception being thrown, and the exit value being 0.

Names have been changed to protect the innocent.
Direct Responses: 1946 | Write a response