package deltix.qsrv.comm.xml;

/**
 * Builds {@link TransientAnnotationReader} instance for {@link Throwable} class.
 * @author mhorst
 *
 */
public class ThrowableTransientAnnotationReaderBuilder {

	
	public TransientAnnotationReader buildInstance() throws Exception {
		TransientAnnotationReader reader = new TransientAnnotationReader();
		reader.addTransientField(Throwable.class.getDeclaredField("stackTrace"));
		reader.addTransientMethod(Throwable.class.getDeclaredMethod("getStackTrace")); 
		return reader;
	}
}
