Introduce error elements.

Closes #7.