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