|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.z3950.zoom.ZOOMException | +--org.z3950.zoom.Bib1Exception
Represents an error occurring in a Z39.50 Server.
Synopsis:
try { // deep sequence of calls, one of which does: throw new Bib1Exception(238, "xml,sutrs"); } catch (Bib1Exception ex) { System.err.println("code=" + ex.code()); System.err.println("addinfo=" + ex.addinfo()); }
This class is not described in detail in the ZOOM Abstract API, but is hinted at in the discussion of diagnostics for the Connection class. It provides methods for obtaining the diagnostic details returned from the server.
Method Summary | |
java.lang.String |
addinfo()
Returns any additional information provided by the server concerning the error that is specified by the errcode() method. |
int |
errcode()
Returns the BIB1 diagnostic code of the error that occurred on the server. |
java.lang.String |
errmsg()
Returns a human-readable string corresponding to the BIB1 diagnostic code of the server error as returned by the errcode() method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int errcode()
public java.lang.String errmsg()
errcode()
method.public java.lang.String addinfo()
errcode()
method. Its exact interpretation is
dependent on what that diagnostic code is.public java.lang.String toString()
toString
in class java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |