Defining and Raising Exceptions

MickeyBob
2019-08-16
2019-08-17
  • MickeyBob

    MickeyBob - 2019-08-16

    Sorry if these are noob questions.

    Is there a way to create a user defined exception? Is it possible to raise an exception in a user defined function or function block?

     
  • e.kislov

    e.kislov - 2019-08-16

    Hi.
    You can use function "SуsЕxcеptGеnеratеЕxcеption" from "SуsЕxcеpt" library.

     
  • MickeyBob

    MickeyBob - 2019-08-17

    Great. Thanks!

    Is there any documentation on best practices for raising exceptions or some good coding examples?

     

Log in to post a comment.