com.ibm.jc
Class JCRMIErrorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.ibm.jc.JCRMIErrorException
All Implemented Interfaces:
java.io.Serializable

public class JCRMIErrorException
extends java.lang.RuntimeException

Abstraction repesenting an error condition occured on the card during JCRMI processing.

See Also:
Serialized Form

Field Summary
static int ERROR_INTERNAL
          Error detail: Internal error occured.
static int ERROR_INVALID_OID
          Error detail: The Remote Object Identifier is invalid or ineligible for JavaCard RMI
static int ERROR_JCRMI_PROTOCOL
          Error detail: JavaCard Remote Method Invocation protocol error.
static int ERROR_METHOD_NOT_FOUND
          Error detail: The Remote Method could not be identified.
static int ERROR_RESOURCES_MARSHALL
          Error detail: Insufficient resources available to marshall response.
static int ERROR_RESOURCES_UNMARSHALL
          Error detail: Insufficient resources available to unmarshall parameters.
static int ERROR_SIGNATURE_MISMATCH
          Error detail: The Remote Method signature did not match the parameter format.
 int errorDetail
          Indicates the type of error.
 
Constructor Summary
JCRMIErrorException(byte[] error, int offset, java.lang.String message)
          Creates a JCRMIErrorException object by decoding the given error response.
JCRMIErrorException(int errorDetail, java.lang.String message)
          Creates a JCRMIErrorException object from the given information.
 
Method Summary
 java.lang.String detailString()
          Returns the error detail as textual description.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_INVALID_OID

public static final int ERROR_INVALID_OID
Error detail: The Remote Object Identifier is invalid or ineligible for JavaCard RMI

See Also:
Constant Field Values

ERROR_METHOD_NOT_FOUND

public static final int ERROR_METHOD_NOT_FOUND
Error detail: The Remote Method could not be identified.

See Also:
Constant Field Values

ERROR_SIGNATURE_MISMATCH

public static final int ERROR_SIGNATURE_MISMATCH
Error detail: The Remote Method signature did not match the parameter format.

See Also:
Constant Field Values

ERROR_RESOURCES_UNMARSHALL

public static final int ERROR_RESOURCES_UNMARSHALL
Error detail: Insufficient resources available to unmarshall parameters.

See Also:
Constant Field Values

ERROR_RESOURCES_MARSHALL

public static final int ERROR_RESOURCES_MARSHALL
Error detail: Insufficient resources available to marshall response.

See Also:
Constant Field Values

ERROR_JCRMI_PROTOCOL

public static final int ERROR_JCRMI_PROTOCOL
Error detail: JavaCard Remote Method Invocation protocol error.

See Also:
Constant Field Values

ERROR_INTERNAL

public static final int ERROR_INTERNAL
Error detail: Internal error occured.

See Also:
Constant Field Values

errorDetail

public int errorDetail
Indicates the type of error.

See Also:
ERROR_INVALID_OID, ERROR_METHOD_NOT_FOUND, ERROR_SIGNATURE_MISMATCH, ERROR_RESOURCES_UNMARSHALL, ERROR_RESOURCES_MARSHALL, ERROR_JCRMI_PROTOCOL, ERROR_INTERNAL
Constructor Detail

JCRMIErrorException

public JCRMIErrorException(int errorDetail,
                           java.lang.String message)
Creates a JCRMIErrorException object from the given information.

Parameters:
errorDetail - The exception detail code.
message - Some message or null.

JCRMIErrorException

public JCRMIErrorException(byte[] error,
                           int offset,
                           java.lang.String message)
Creates a JCRMIErrorException object by decoding the given error response.

Parameters:
error - Array holding the error response.
offset - Offset into error.
message - Some message or null.
Throws:
JCException - If an error occurs while decoding the error response.
Method Detail

detailString

public java.lang.String detailString()
Returns the error detail as textual description.

Returns:
Error detail string (e.g. The Remote Method could not be identified.).

toString

public java.lang.String toString()