RDMI Error Handling
When a method is being invoked, RDMI supports the principle of exception handling for reporting errors. Subsequently, if the chosen middleware supports it, a message can be passed on with the exception to explain in detail what has gone wrong. Following the exception, the rules engine will display the returned message and will discontinue the transaction.
Visual Basic example of raising an exception
Public Function SquareRoot(par1 As Integer) As Double
If par1 < 0 Then
Err.Raise vbObjectError + 1050, "USMath", "Value must be positive."
SquareRoot = sqr(par1)