aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-07-10 22:20:33 +0200
committerManolo Carrasco <manolo@apache.org>2015-07-10 22:23:48 +0200
commit0a8f1e1925f5c8520f726c1dd30b2c33a450ae4d (patch)
tree10b538bb4d39a44000b67e7c194cd2819300f157
parent83288de9a24fd7f65e9e731c90cee1651f62bd85 (diff)
downloadgwtquery-0a8f1e1925f5c8520f726c1dd30b2c33a450ae4d.tar.gz
gwtquery-0a8f1e1925f5c8520f726c1dd30b2c33a450ae4d.zip
Throw an exception when wrapped object is unknown.
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
index 4ed7cad8..736f024a 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
@@ -270,8 +270,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
// Otherwise we wrap it as an element
return new GQuery(jso.<Element> cast());
}
- console
- .log("Error: GQuery.$(Object o) could not wrap the type : ", o.getClass().getName(), o);
+ throw new RuntimeException("Error: GQuery.$(Object o) could not wrap the type : " + o.getClass().getName() + " " + o);
}
return $();
}