Skip to main content

encounteredExceptionOrError static method

[bool?] encounteredExceptionOrError(

  1. [[OperationException] exception, )

This function is used to check if any exceptions or error encountered. The return type is boolean.

params:

  • exception: OperationException which occur when calling for graphql post request
  • showSnackBar: Tell if the the place where this function is called wants a SnackBar on error

returns:

  • bool?: returns a bool whether or not their is error, can be null

Implementation

static bool? encounteredExceptionOrError(
OperationException exception, )
  1. talawa
  2. graphql_exception_resolver
  3. GraphqlExceptionResolver
  4. encounteredExceptionOrError static method
GraphqlExceptionResolver class