FunctionInvocationError Interface
Namespace
Usage
FunctionInvocationError contains various error information such as the error message at the time of the error.
FunctionInvocationError Methods
The following are methods for FunctionInvocationError.
FunctionInvocationError Example Implementation
This is an example implementation of the functions.FunctionInvocationError interface.
public class MyFunctionInvocationError
implements functions.FunctionInvocationError {
public String getMessage() {
return 'Mock error message for testing';
}
public functions.FunctionErrorType getType() {
return functions.FunctionErrorType.FUNCTION_EXCEPTION;
}
}
This example tests the implementation.
functions.FunctionInvocationError testError = new MyFunctionInvocationError();
System.debug('Error: ' + testError.getMessage() + ' Type: ' + testError.getType());