1 16 package com.google.gwt.junit.client.impl; 17 18 import com.google.gwt.core.client.GWT; 19 import com.google.gwt.user.client.rpc.IsSerializable; 20 21 25 public final class ExceptionWrapper implements IsSerializable { 26 27 30 public ExceptionWrapper cause; 31 32 35 public String message; 36 37 40 public StackTraceWrapper[] stackTrace; 41 42 45 public String typeName; 46 47 50 public ExceptionWrapper() { 51 } 52 53 58 public ExceptionWrapper(Throwable e) { 59 typeName = GWT.getTypeName(e); 60 message = e.getMessage(); 61 stackTrace = StackTraceWrapper.wrapStackTrace(e.getStackTrace()); 62 Throwable ecause = e.getCause(); 63 if (ecause != null) { 64 cause = new ExceptionWrapper(ecause); 65 } 66 } 67 68 } 69 | Popular Tags |