manage method
Determine exception to rethrow
Implementation
@protected
void manage() {
printOutError();
// // GraphqlOnErrorEvent
// if (result?.exception is OperationException && request is GraphqlOnErrorEvent) {
// (request as GraphqlOnErrorEvent).onError(result?.exception);
// }
//
// // GraphqlOnErrorWithVariablesEvent
// if (result?.exception is OperationException && request is GraphqlOnErrorWithVariablesEvent) {
// try {
// (request as GraphqlOnErrorWithVariablesEvent).onError(result?.exception, variables);
// throw GraphqlResultException(exception: result?.exception);
// } catch (e) {
// rethrow;
// }
// }
//
// // Not found resource
// if (result?.exception?.graphqlErrors.first.message == 'NOT_FOUND') {
// throw GraphqlResourceNotFound();
// }
//
// throw result?.exception ?? GraphqlResultException(exception: result?.exception);
}