Primitive error handling.