Raise a ValidationError if we're asked for an unsupported format.