use `@type` and `@message` rather than `type` and `message`