Error handling: Primitive cases