catch error in SAIL interface

Hi All,
does exist a method to catch all raised errors in a form , send detail to environment administrator and show to the user only a message like "An error occurred, please contact System Admin" ?
Thank you
Elia

OriginalPostID-268539

  Discussion posts and replies are publicly visible

Parents
  • Ideally your forms wouldn't error to begin with. There's a sort of catch 22 here which makes it at the very best difficult in Appian. To my knowledge there is no out of the box functionality to trigger an action when an error occurs, so to implement this you would need to identify the sections of your code that are causing the error, and display the desired message. But if you know where in the code the errors are, best practices state that you should fix the issue rather than displaying an error message. A custom plugin might be able to address this by detecting the error in Java and firing off actions based on what occurred, but that's probably more work than simply testing more rigorously to find issues before your users do.
Reply
  • Ideally your forms wouldn't error to begin with. There's a sort of catch 22 here which makes it at the very best difficult in Appian. To my knowledge there is no out of the box functionality to trigger an action when an error occurs, so to implement this you would need to identify the sections of your code that are causing the error, and display the desired message. But if you know where in the code the errors are, best practices state that you should fix the issue rather than displaying an error message. A custom plugin might be able to address this by detecting the error in Java and firing off actions based on what occurred, but that's probably more work than simply testing more rigorously to find issues before your users do.
Children
No Data