pluginError static method

RequestError pluginError(
  1. dynamic exception,
  2. String? stackTrace
)

Return a request error representing an error that occurred in the plugin.

Implementation

static RequestError pluginError(dynamic exception, String? stackTrace) =>
    RequestError(RequestErrorCode.PLUGIN_ERROR, exception.toString(),
        stackTrace: stackTrace);