Subversion Repositories eFlore/Applications.del

Rev

Rev 1561 | Rev 2078 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1561 Rev 1995
Line 8... Line 8...
8
 
8
 
Line 9... Line 9...
9
public class Del implements EntryPoint {
9
public class Del implements EntryPoint {
10
	
10
	
11
	@Override
-
 
12
	public void onModuleLoad() {
-
 
13
		// A décommenter + compiler en detailed dans le cas d'une erreur
-
 
Line -... Line 11...
-
 
11
	@Override
14
		// survernant uniquement sur le serveur
12
	public void onModuleLoad() {
15
		/*GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
13
		
-
 
14
	    /*GWT.setUncaughtExceptionHandler(new   
16
		
15
	    		GWT.UncaughtExceptionHandler() {  
-
 
16
	    	public void onUncaughtException(Throwable e) {  
-
 
17
	    		Throwable unwrapped = unwrap(e);  
-
 
18
	    		Window.alert(buildStackTrace(unwrapped, ""));
17
		@Override
19
	    	}    
-
 
20
    
18
		public void onUncaughtException(Throwable e) {
21
	    	public Throwable unwrap(Throwable e) {   
-
 
22
	    		if(e instanceof UmbrellaException) {   
-
 
23
	    			UmbrellaException ue = (UmbrellaException) e;  
-
 
24
	    			if(ue.getCauses().size() == 1) {   
19
				Window.alert("uncaught: " + e.getMessage());
25
	    				return unwrap(ue.getCauses().iterator().next());  
20
				String s = buildStackTrace(e, "RuntimeException:\n");
26
	    			}  
21
				Window.alert(s);
27
	    		}  
Line 22... Line 28...
22
				e.printStackTrace();
28
	    		return e;  
23
			}
29
	    	}  
24
		});*/
30
	    });*/
25
 
31