|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.sap.ip.me.api.services.MEException
com.sap.ip.me.api.pios.PIOSException
Base class for all PIOS exceptions. Exceptions thrown by the PIOS layer will be based on this exception.
The constructor accepts a detail message, an error code or a Throwable object identifying the cause of the error.
Field Summary | |
static int |
ALREADY_CREATED
Constant that indicates that a native object has already been created. |
static int |
ALREADY_OPENED
Constant that indicates that the connection is already open. |
static int |
CONFIGURATION_ERROR
Constant that indicates that there is a configuration error. |
static int |
GENERIC_ERROR
Constant that indicates a generic error. |
static int |
INVALID_OBJECT
Constant that indicates that a native invalid object has been detected. |
static int |
INVALID_PARAMETER
Constant that indicates that an invalid parameter has been detected. |
static int |
INVALID_SYMBOLOGY
Constant that indicates that the symbology or an option of the symbology is invalid. |
static int |
LIBRARY_NOT_LOADED
Constant that indicates that the library could not been loaded. |
static int |
NOT_CREATED
Constant that indicates an invalid access to an object because a native object has not been created yet. |
static int |
NOT_OPENED
Constant that indicates an invalid access to an object because the connection has not been open. |
static int |
OUT_OF_MEMORY
Constant that indicates an out of memory error. |
static int |
SPECIFIC_PRINTER_ERROR
Constant reserved for specific peripherals. |
static int |
SPECIFIC_RFID_ERROR
Constant reserved for specific peripherals. |
static int |
SPECIFIC_SCANNER_ERROR
Constant reserved for specific peripherals. |
static int |
TIMEOUT
Constant that indicates that there was a timeout performing an operation. |
static int |
UNKNOWN_ERROR
Constant that indicates an unknown error. |
static int |
UNSPECIFIED_ERROR
Constant that indicates that no error has been specified. |
static int |
UNSUPPORTED
Constant that indicates that the called method is not supported by the driver. |
Constructor Summary | |
PIOSException()
Creates a new PIOSException with no detailed message. |
|
PIOSException(int errorCode)
Creates a new PIOSException with just an error code. |
|
PIOSException(int errorCode,
java.lang.String message)
Creates a new PIOSException with the specified detail message and the specified error code. |
|
PIOSException(int errorCode,
java.lang.Throwable cause)
Creates a new exception with the a detail message generated by calling getException and with the specifed error code. |
|
PIOSException(java.lang.String message)
Creates a new PIOSException with the specified detail message. |
|
PIOSException(java.lang.Throwable cause)
Creates a new exception with the a detail message generated by calling getException. |
Method Summary | |
int |
getErrorCode()
Returns the error number/code associated with the exception. |
static java.lang.String |
getException(java.lang.Throwable cause)
Returns the specified throwable object stack trace as an string. |
Methods inherited from class com.sap.ip.me.api.services.MEException |
getNestedException, getReason, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, 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 UNSPECIFIED_ERROR
public static final int UNKNOWN_ERROR
public static final int GENERIC_ERROR
public static final int INVALID_OBJECT
public static final int ALREADY_CREATED
public static final int INVALID_PARAMETER
public static final int NOT_CREATED
public static final int NOT_OPENED
public static final int ALREADY_OPENED
public static final int UNSUPPORTED
UnsupportedException
,
Constant Field Valuespublic static final int LIBRARY_NOT_LOADED
LibraryNotLoadedException
,
Constant Field Valuespublic static final int TIMEOUT
TimeOutException
,
Constant Field Valuespublic static final int OUT_OF_MEMORY
public static final int CONFIGURATION_ERROR
ConfigurationException
,
Constant Field Valuespublic static final int INVALID_SYMBOLOGY
InvalidSymbologyException
,
Constant Field Valuespublic static final int SPECIFIC_PRINTER_ERROR
public static final int SPECIFIC_SCANNER_ERROR
public static final int SPECIFIC_RFID_ERROR
Constructor Detail |
public PIOSException()
public PIOSException(int errorCode)
errorCode
- the error numberpublic PIOSException(java.lang.String message)
message
- the detail message.public PIOSException(int errorCode, java.lang.String message)
errorCode
- the error numbermessage
- the detail message.public PIOSException(java.lang.Throwable cause)
cause
- the exception causepublic PIOSException(int errorCode, java.lang.Throwable cause)
errorCode
- the error numbercause
- the exception causeMethod Detail |
public static java.lang.String getException(java.lang.Throwable cause)
cause
- the exception cause
public int getErrorCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |