They are used for error tracking.
If an error occurs within a try - end try block you can catch it with catch o:object; runtimeerror o.tostring() for example.
throw is to throw your own error message for catch
If an error occurs within a try - end try block you can catch it with catch o:object; runtimeerror o.tostring() for example.
throw is to throw your own error message for catch