Error handling

<< Click to Display Table of Contents >>

Navigation:  Using SMILE Wrappers >

Error handling

Python, Java and .NET SMILE Wrappers throw exceptions when the underlying C++ SMILE calls fail. The exception types are:

Python

pysmile.SMILEException

Java

smile.SMILEException

C#

Smile.SmileException

 

R’s error handling is a form of exception handling, implemented via its condition system. The rSMILE package raises an error condition if underlying C++ SMILE calls fail. This error condition can be handled in the same way as other errors in the R environment, namely through the try() and tryCatch() functions.