Throw exception

Follow

Comments

4 comments

  • Avatar
    Marco Mariani

    Hi Mark,

    where can we find the types of throwable objects?

    Basically I would like to have some example of strings we can add in the ExceptionType property.

     

    Thanks,

    Marco

     

    0
    Comment actions Permalink
  • Avatar
    Dan Richings

    Hi Marco,

    There are hundreds of exception types, both inside the Adaptiva libraries and outside of the Adaptiva libraries, it would be impossible to provide a list. I would recommend running your workflow and if you encounter a specific exception that you want to handle differently to any other exception, you copy and paste the exception type. For the majority of scenarios, the default 'Throwable' catch should be sufficient for error handling as this will trap any unhandled exception.

    Thanks,

    Dan

    0
    Comment actions Permalink
  • Avatar
    Marco Mariani

    Hi Dan,

    I wanted to use the action "Throw Exception", however it requires an exceptionType. 

    I used the null exception that "Luckily :)" I could copy from a workflow log.

    Are those standard JAVA classes? If so I can google them.

     

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Dan Richings

    Hi Marco,

    An example generic error that you can use to throw would be java.lang.Throwable. They are standard java classes though so you're welcome to google possible errors.

    Thanks,

    Dan

    0
    Comment actions Permalink

Please sign in to leave a comment.