GraphQLException.fromSourceSpan constructor

GraphQLException.fromSourceSpan(
  1. String message,
  2. FileSpan span
)

Implementation

factory GraphQLException.fromSourceSpan(String message, FileSpan span) {
  return GraphQLException([
    GraphQLExceptionError(
      message,
      locations: [
        GraphExceptionErrorLocation.fromSourceLocation(span.start),
      ],
    ),
  ]);
}