|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jafer.exception.JaferException
org.jafer.zclient.operations.PresentException
public class PresentException
Exception thrown if problems retrieving records
Field Summary | |
---|---|
private Diagnostic[] |
diagnostics
Stores a reference to the diagnostics that were reported |
private int |
numberOfRecordsReturned
Stores a reference to the number of records that the search returned |
private int |
status
Stores a reference to ststus of this execptin |
static int |
STATUS_ORIGIN_FAILURE
Stores a reference to the status code of 3 for STATUS_ORIGIN_FAILURE |
static int |
STATUS_REQUEST_TERMINATED
Stores a reference to the status code of 1 for STATUS_REQUEST_TERMINATED |
static int |
STATUS_TARGET_FAILURE
Stores a reference to the status code of 4 for STATUS_TARGET_FAILURE |
static int |
STATUS_TERMINAL_FAILURE
Stores a reference to the status code of 5 for STATUS_TERMINAL_FAILURE |
static int |
STATUS_TO_MANY_RECORDS
Stores a reference to the status code of 2 for STATUS_TO_MANY_RECORDS |
Constructor Summary | |
---|---|
PresentException(int status,
int numberOfRecordsReturned,
Diagnostic[] diagnostics,
java.lang.String message)
Constructor |
|
PresentException(int status,
int numberOfRecordsReturned,
java.lang.String message)
Constructor |
|
PresentException(int status,
int numberOfRecordsReturned,
java.lang.String message,
java.lang.Throwable cause)
Constructor |
Method Summary | |
---|---|
Diagnostic[] |
getDiagnostics()
Returns the diagnostics for this execption |
int |
getNumberOfRecordsReturned()
Returns the number of records that were returned by the search |
int |
getStatus()
Returns the status of this execption |
boolean |
hasDiagnostics()
Returns a boolean to indicate if this exception has diagnostic information |
Methods inherited from class org.jafer.exception.JaferException |
---|
getAddInfo, getDiagCondition, getDiagnostic, hasDiagnostic |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_REQUEST_TERMINATED
public static final int STATUS_TO_MANY_RECORDS
public static final int STATUS_ORIGIN_FAILURE
public static final int STATUS_TARGET_FAILURE
public static final int STATUS_TERMINAL_FAILURE
private int status
private int numberOfRecordsReturned
private Diagnostic[] diagnostics
Constructor Detail |
---|
public PresentException(int status, int numberOfRecordsReturned, Diagnostic[] diagnostics, java.lang.String message)
status
- the status number for this execptionnumberOfRecordsReturned
- The number of records that were returneddiagnostics
- The diagnostics that were returnedmessage
- The detailed message string for the execptionpublic PresentException(int status, int numberOfRecordsReturned, java.lang.String message)
status
- the status number for this execptionnumberOfRecordsReturned
- The number of records that were returnedmessage
- The detailed message string for the execptionpublic PresentException(int status, int numberOfRecordsReturned, java.lang.String message, java.lang.Throwable cause)
status
- the status number for this execptionnumberOfRecordsReturned
- The number of records that were returnedmessage
- The detailed message string for the execptioncause
- The exception that caused this PresentException to be
createdMethod Detail |
---|
public int getStatus()
public int getNumberOfRecordsReturned()
public Diagnostic[] getDiagnostics()
public boolean hasDiagnostics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |