ScriptExecutionResult.failure constructor

ScriptExecutionResult.failure(
  1. String error, {
  2. StackTrace? stackTrace,
  3. int sourcesLoaded = 0,
})

Create a failed result.

Implementation

factory ScriptExecutionResult.failure(
  String error, {
  StackTrace? stackTrace,
  int sourcesLoaded = 0,
}) {
  return ScriptExecutionResult._(
    success: false,
    error: error,
    stackTrace: stackTrace,
    sourcesLoaded: sourcesLoaded,
  );
}