Work on error reporting. Adds troubleshooter.
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / pz2utils4jsf / pazpar2 / Pz2Interface.java
index 6aa1921..d7fb64c 100644 (file)
@@ -1,9 +1,11 @@
 package com.indexdata.pz2utils4jsf.pazpar2;\r
 \r
+import java.io.Serializable;\r
 import java.util.List;\r
 \r
 import com.indexdata.pz2utils4jsf.controls.ResultsPager;\r
 import com.indexdata.pz2utils4jsf.pazpar2.TargetFilter;\r
+import com.indexdata.pz2utils4jsf.pazpar2.data.ApplicationError;\r
 import com.indexdata.pz2utils4jsf.pazpar2.data.ByTarget;\r
 import com.indexdata.pz2utils4jsf.pazpar2.data.RecordResponse;\r
 import com.indexdata.pz2utils4jsf.pazpar2.data.ShowResponse;\r
@@ -11,7 +13,7 @@ import com.indexdata.pz2utils4jsf.pazpar2.data.StatResponse;
 import com.indexdata.pz2utils4jsf.pazpar2.data.TermListsResponse;\r
 import com.indexdata.pz2utils4jsf.pazpar2.data.TermResponse;\r
 \r
-public interface Pz2Interface {\r
+public interface Pz2Interface extends Serializable {\r
 \r
   /**\r
    * Executes a Pazpar2 search using the given query string\r
@@ -297,4 +299,9 @@ public interface Pz2Interface {
    * @param key corresponding to browsers hash string\r
    */\r
   public void setCurrentStateKey(String key);\r
+  \r
+  public boolean hasErrors();\r
+      \r
+  public ApplicationError getOneError();\r
+   \r
 }\r