com.tecit.jni.barcode
Class TBarCodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.tecit.jni.barcode.TBarCodeException
All Implemented Interfaces:
java.io.Serializable

public class TBarCodeException
extends java.lang.Exception

This class implements exceptions that are thrown by the native TBarCode DLL.

See Also:
Serialized Form

Field Summary
static int ERR_OK
          the error code if no error occurred
 
Constructor Summary
TBarCodeException(java.lang.String message)
          Constructor - text only
TBarCodeException(java.lang.String message, int nErrorCode)
          Constructor - text, error code
TBarCodeException(java.lang.String message, java.lang.Throwable cause)
          Constructor - text, original exception
 
Method Summary
 int getErrorCode()
          Get the error code.
 boolean isErrorCodeSet()
          Determines if error the code has been set.
 
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

ERR_OK

public static final int ERR_OK
the error code if no error occurred

See Also:
Constant Field Values
Constructor Detail

TBarCodeException

public TBarCodeException(java.lang.String message)
Constructor - text only

Parameters:
message - error message text

TBarCodeException

public TBarCodeException(java.lang.String message,
                         java.lang.Throwable cause)
Constructor - text, original exception

Parameters:
message - error message text
cause - original exception

TBarCodeException

public TBarCodeException(java.lang.String message,
                         int nErrorCode)
Constructor - text, error code

Parameters:
message - error message text
nErrorCode - TBarCode error code
Method Detail

getErrorCode

public int getErrorCode()
Get the error code.

Returns:
the error code.

isErrorCodeSet

public boolean isErrorCodeSet()
Determines if error the code has been set.

Returns:
true if error code has been set, false otherwise.