Beispiel #1
0
func (b *collectBehavior) Recover(r interface{}) error {
	b.recoverings++
	if b.recoverings > 5 {
		return cells.NewCannotRecoverError(b.c.ID(), r)
	}
	return nil
}
Beispiel #2
0
// Recover from an error.
func (b *fsmBehavior) Recover(err interface{}) error {
	b.done = true
	b.err = cells.NewCannotRecoverError(b.cell.ID(), err)
	return nil
}