May 2017
Intermediate to advanced
414 pages
13h
English
In this recipe, we demonstrated how we can handle errors using supervision strategies. It is possible to set supervision strategies in two different levels: stream or stage. First, we have a supervision strategy called streamDecider that will be resumed if there is any IndexOutOfBoundsException and will stop in any other case. Second, we have a supervision strategy named flowDecider that will resume if there is any IllegalArgumentException and will stop in any other case. There are three possibilities when handling an error:
Read now
Unlock full access