refuse method

  1. @protected
UnsupportedCapabilityException refuse(
  1. DeviceFeature feature, {
  2. String? reason,
})
inherited

The refusal for feature on this device, for a default body or a backend's own gate to throw: throw refuse(DeviceFeature.compute).

Implementation

@protected
UnsupportedCapabilityException refuse(
  DeviceFeature feature, {
  String? reason,
}) => UnsupportedCapabilityException(
  feature,
  backend: backendName,
  reason: reason,
);