Where to attach the Trap?

22 views
Skip to first unread message

jd

unread,
Apr 12, 2012, 8:54:22 PM4/12/12
to cascadi...@googlegroups.com
Just a quick question about Traps. 

Do you attach the Trap to the top most pipe to catch all, or do I have to attach to specific sub assemblies as well?

For example:
{
Pipe top    = new Pipe("top");
Pipe other = new SomeSubAssembly( top, ... )
Pipe more = new SomethingElse( other, ... );
}
 
What I'm finding is that attaching the trap to "top" does not catch errors from "other" or "more"

I thought I understood how this worked, but maybe not. I also may have made a mistake somewhere.. But I wanted to get clarification if it _should_ catch errors for everything under top?

-JD

Chris K Wensel

unread,
Apr 13, 2012, 11:38:35 AM4/13/12
to cascadi...@googlegroups.com

Traps only capture from branches they are bound to. If you rename the branch downstream, you need to apply a trap to it, if you want to trap the failures there.

Pipe#names( tails...) will help find any branch names so you don't need to keep an accounting of them.

ckw

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cascading-user/-/iZIhSkzxRO0J.
To post to this group, send email to cascadi...@googlegroups.com.
To unsubscribe from this group, send email to cascading-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cascading-user?hl=en.


Reply all
Reply to author
Forward
0 new messages