1 16 package com.google.gwt.core.client; 17 18 25 public final class JavaScriptException extends RuntimeException { 26 27 31 private final String name; 32 33 37 private final String description; 38 39 43 public JavaScriptException(String name, String description) { 44 super("JavaScript " + name + " exception: " + description); 45 this.name = name; 46 this.description = description; 47 } 48 49 54 protected JavaScriptException(String message) { 55 super(message); 56 this.name = null; 57 this.description = message; 58 } 59 60 63 public String getDescription() { 64 return description; 65 } 66 67 70 public String getName() { 71 return name; 72 } 73 74 } 75 | Popular Tags |