The Invalid class is accessible via the formencode.api module.
Returns the error as a simple data structure -- lists, dictionaries, and strings.
If encode_variables is true, then this will return a flat dictionary, encoded with variable_encode
See the source for more information.