Class ApduException

All Implemented Interfaces:
Serializable

public class ApduException extends CommandException
Thrown when an APDU command fails with an error code. See SW for a list of status codes.
See Also:
  • Constructor Details

    • ApduException

      @Deprecated public ApduException(short sw)
      Deprecated.
    • ApduException

      @Deprecated public ApduException(short sw, String message)
      Deprecated.
    • ApduException

      public ApduException(byte[] data, short sw)
    • ApduException

      public ApduException(byte[] data, short sw, String message)
  • Method Details

    • getSw

      public short getSw()
      Gets error code that received via APDU response
      Returns:
      error code
    • getData

      public byte[] getData()
      Gets the data received via APDU response
      Returns:
      response data