Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Defining and Raising Exceptions

MickeyBob
2019-08-16
2019-08-17
  • 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 - 2019-08-16

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

     
  • 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.