Announcement Announcement Module
No announcement yet.
onSkipInWrite(): throwable type Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • onSkipInWrite(): throwable type

    I have some business validations in doProcess() of my writer class.
    I will throw corresponding user defined business exception object for each business validation failure. I have the skip logic also.
    So in onSkipInWrite() i want to get the type of the exception actually thrown using Throwable parameter of the method.

    In onSkipInWrite() i am checking like "throwable instanceof BusinessException". But it is not working.

    All my business exceptions are extended from Exception class, so the above check should work as per java exception hierarchy.

    Would anybody please help me on this?