QueryException(QueryExceptionEvent event, { String message: null, Exception underlyingException: null })

Source

QueryException(this.event, {String message: null, this.underlyingException: null})
    : super(_getStatus(event), message ?? underlyingException?.toString(),
          isControlFlowException: event != QueryExceptionEvent.internalFailure);