RaiseException Method
Used to reply with an error response to a function call request received from the SAP system.
Syntax
[VB.NET] Public Sub RaiseException(ByVal Message As String)
[C#] public void RaiseException(string message);
Remarks
If you encounter an error when processing the function call inside of the FunctionCall event, use the RaiseException method to return an error condition to the SAP system that called your function.
This method should only be used inside the FunctionCall event.
NOTE: This method has a corresponding asynchronous version (RaiseExceptionAsync) for use in the Xamarin environment.