Silk Mobile

Table of Contents (Homepage)

SetThrowExceptionOnFail

void setThrowExceptionOnFail(throwExceptionOnFail)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

images/images/os-icons/os_symbian02_150x150.png

images/images/os-icons/os_windows_mobile_150x150.png

Description

Void methods throw an exception by default.

This command enables the user to control that option.

Note: This command is available only from a JAVA, C# Or Python coding environments.

Parameters

  • throwExceptionOnFail : Boolean parameter:

    • true (default) : An exception will be thrown when void method fail.

    • false: No exception will be thrown when a Void method fail.