3. Error handling

All the API functions raise exceptions in case of an error. If an error or a situation making further execution of an algorhythm impossible or meaningless occurs in a user-generated Python function, there should be an exception raised. In this case a user will be displayed a message about the exception.