Skip to content

Wrong docs in sentry_link #2615

@ueman

Description

@ueman

Description

Hi there :)

I think theres a missing type in the "Additional graphql usage hints" section in the docs:

class OperationExceptionExtractor extends ExceptionCauseExtractor<T> {
  @override
  ExceptionCause? cause(T error) {
    return ExceptionCause(error.linkException, error.originalStackTrace);
  }
}

it seems that T should be OperationException instead

class OperationExceptionExtractor
    extends ExceptionCauseExtractor<OperationException> {
  @override
  ExceptionCause? cause(OperationException error) {
    return ExceptionCause(error.linkException, error.originalStackTrace);
  }
}

Originally reported at ueman/dart-packages#4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions