GraphQLError constructor

GraphQLError({
  1. String? message,
  2. String? error,
  3. UserFacingError? userFacingError,
})

Create a new instance of PrismaError.

Implementation

GraphQLError({
  this.message,
  this.error,
  this.userFacingError,
}) : assert(message != null || error != null,
          '$GraphQLError: message or error is null');