UnsupportedOperationException constructor
Thrown to indicate that a requested operation is not supported.
This exception extends RuntimeException and is typically used when a method or feature is not implemented or intentionally unsupported.
Example
throw UnsupportedOperationException('Removing items is not supported.');
Optionally, a cause can be passed to provide the underlying reason:
throw UnsupportedOperationException(
'Serialization not supported',
cause: Exception('Missing serializer'),
);
Implementation
UnsupportedOperationException(super.message, {super.cause});