def on_failure(self, metadata):
self.connection.reset()<EOL>handler = self.handlers.get("<STR_LIT>")<EOL>if callable(handler):<EOL><INDENT>handler(metadata)<EOL><DEDENT>handler = self.handlers.get("<STR_LIT>")<EOL>if callable(handler):<EOL><INDENT>handler()<EOL><DEDENT>raise CypherError.hydrate(**metadata)<EOL>
Called when a FAILURE message has been received.