Site Tools

Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:java-card-api:arraystoreexception

java.lang

Class ArrayStoreException


public class ArrayStoreExceptionextends RuntimeException

A Java Card runtime environment-owned instance of ArrayStoreException is thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects. For example, the following code generates an ArrayStoreException:

Object x[] = new AID[3]; x[0] = new OwnerPIN( (byte) 3, (byte) 8);

Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Runtime Environment Specification for the Java Card Platform, section 6.2.1 for details. This Java Card platform class's functionality is a strict subset of the definition in the JavaTM 2 Platform Standard Edition (J2SETM) API Specification.


Constructor Summary
ArrayStoreException ()          Constructs an ArrayStoreException.

 

Method Summary

 

Methods inherited from class java.lang.Object
equals

 

Constructor Detail

ArrayStoreException

public ArrayStoreException()

Constructs an ArrayStoreException.

javacard/java-card-api/arraystoreexception.txt · Last modified: 2017/05/13 04:04 (external edit)