예제 #1
0
 public Response Error(GraphQlError error)
 {
     return(new Response(error.StatusCode, error.ErrorMessage));
 }
예제 #2
0
 /// <summary>
 /// Constructor for a GraphQlException
 /// </summary>
 /// <param name="graphQlError">The GraphQL Error</param>
 public GraphQlException(GraphQlError graphQlError) : base(graphQlError.Message)
 {
     GraphQlError = graphQlError;
 }