SchemaItemBoolean and SchemaItemInteger attempt to raise an exception of type Error when given invalid input, but this type has never been defined. Use ValueError instead.