---
title: "U3011: Handler missing an operation"
url: https://una-lang.org/en/docs/errors/U3011/
release: v0.4.0
source: https://github.com/una-lang/una/blob/v0.4.0/crates/una-explain/explain/U3011.md
---

# U3011: Handler missing an operation

A handler implements every operation of its capability (`spec/05 §5` rule 1): an installed handler stands for the whole capability, whatever operations a caller needs. The message lists the operations that are missing. Add an `op` line for each of them.

## The repair at a glance

```diff
  module demo

  capability Log
    op write(line: Text) -> Unit
    op flush() -> Unit

  handler silent() for Log
    op write(line) = unit
+   op flush() = unit
```

## Failing example

```una
module demo

capability Log
  op write(line: Text) -> Unit
  op flush() -> Unit

handler silent() for Log
  op write(line) = unit
```

## Fixed example

```una
module demo

capability Log
  op write(line: Text) -> Unit
  op flush() -> Unit

handler silent() for Log
  op write(line) = unit
  op flush() = unit
```
