ds.ov2.util
Class Response_apdu.Card_response_error

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.smartcardio.CardException
              extended by ds.ov2.util.Response_apdu.Card_response_error
All Implemented Interfaces:
Serializable
Enclosing class:
Response_apdu

public class Response_apdu.Card_response_error
extends CardException

Exception of response APDU's that indicate an error. Every such exception is linked to a response APDU (because this is a non-static inner class) and the status and its argument can be accessed through the exception.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Field to disable the serialVersionUID warning.
 
Constructor Summary
Response_apdu.Card_response_error()
          Create a new response status exception out of the containing response status object.
 
Method Summary
 short response_argument()
          Argument of the respose status.
 short response_code()
          Return the pure response status.
 
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

serialVersionUID

public static final long serialVersionUID
Field to disable the serialVersionUID warning.

See Also:
Constant Field Values
Constructor Detail

Response_apdu.Card_response_error

public Response_apdu.Card_response_error()
Create a new response status exception out of the containing response status object.

Method Detail

response_code

public short response_code()
Return the pure response status. For status words that carry an argument, as for instance ISO7816.SW_BYTES_REMAINING_00, the argument is stripped off.

Returns:
the response status without potential arguments,

response_argument

public short response_argument()
Argument of the respose status.

Returns:
the argument of the response status or -1 if the status did not contain an argument.