Spla provides very important features to handle any unexpected error in your Spla programs and to add debugging capabilities in them −
Exception Handling − This would be covered in this tutorial. Here is a list standard Exceptions available in Spla − Standard Exceptions.
Here is a list of Standard Exceptions available in Spla. −
| Sr.No. | Exception Name & Description |
|---|---|
| 1 | Exception Base class for all exceptions |
| 2 | ArithmaticException Base class for all errors that occur for numeric calculation. |
| 3 | ZeroDivisonException Raised when division or modulo by zero takes place for all numeric types. |
| 4 | IOException Raised when there is a I/O exception. |
Here is simple syntax of try....catch... blocks −
try: You do your operations here ...................... catch ArithmaticException,Exception e1:: You do your operations here