aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web/client/database/BaseAsyncCallback.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/web/client/database/BaseAsyncCallback.java')
-rw-r--r--src/main/java/org/traccar/web/client/database/BaseAsyncCallback.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/web/client/database/BaseAsyncCallback.java b/src/main/java/org/traccar/web/client/database/BaseAsyncCallback.java
new file mode 100644
index 0000000..bcc8c37
--- /dev/null
+++ b/src/main/java/org/traccar/web/client/database/BaseAsyncCallback.java
@@ -0,0 +1,19 @@
+package org.traccar.web.client.database;
+
+import org.traccar.web.client.Traccar;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.smartgwt.client.util.SC;
+
+public class BaseAsyncCallback<T> implements AsyncCallback<T> {
+
+ @Override
+ public void onFailure(Throwable caught) {
+ SC.warn(Traccar.getConstants().remoteProcedureCallError());
+ }
+
+ @Override
+ public void onSuccess(T result) {
+ }
+
+}