ArgumentOutOfRangeException.fromCause constructor

ArgumentOutOfRangeException.fromCause(
  1. GrpcError error
)

Constructs a new instance of ArgumentOutOfRangeException from given error

Implementation

factory ArgumentOutOfRangeException.fromCause(GrpcError error) =>
    ArgumentOutOfRangeException(
      error.message,
      cause: error,
    );