Skip to main content
Participant
Jun 26, 2017 3:32 PM UTC
Question

How to catch exception

In asc code i have line:

if (new File(WRONG_PATH).open("utf8", "write")) {}

how to catch error because try/catch does not work.

Thank you in advance

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Graeme Bull
    Community Expert
    Community Expert
    Jul 31, 2017 3:04 PM UTC

    It should return true or false, if false then "error" if not, then it succeeded.

    Translate