@Override
public void visit(final Visitable visitable) throws IOException
{
final ThriftException exception = ThriftException.class.cast(visitable);
final StructContext exceptionContext = contextGenerator.structFromThrift(exception);
for (final ThriftField field : exception.getFields()) {
exceptionContext.addField(contextGenerator.fieldFromThrift(field));
}
render(exceptionContext, "exception");
}