refuseResource method

  1. @protected
DeviceResourceException refuseResource(
  1. String operation,
  2. String reason, {
  3. Object? cause,
})
inherited

The refusal for a request this device has the feature for and still cannot honour, for a backend to throw from operation: throw refuseResource('createTextureFromPixels', 'the pixels are …').

Implementation

@protected
DeviceResourceException refuseResource(
  String operation,
  String reason, {
  Object? cause,
}) => DeviceResourceException(
  operation: operation,
  backend: backendName,
  reason: reason,
  cause: cause,
);