Asserts that the active surface has a capability, throwing a CapabilityError with a clear message when it does not.
The capability the caller needs.
The message to present when it is absent.
When the active surface lacks the capability.
Asserts that the active surface has a capability, throwing a CapabilityError with a clear message when it does not.