Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

When must I use throws ISOException at the end of the declaration line?

JavaCard Applet Development Related Questions and Answers.
marclo
Posts: 20
Joined: Thu Nov 19, 2015 5:41 am
Points :127
Contact:

When must I use throws ISOException at the end of the declaration line?

Post by marclo » Sat Dec 19, 2015 1:50 am

This is a process method declaration followed by throws ISOException.

Code: Select all

public void process(APDU apdu) throws ISOException 
    {
    ...
    } 

Another process declaration line from the end of which I removed throws ISOException.

Code: Select all

public void process(APDU apdu)
    {
    ...
    }


What is the difference between the two expression below? When must I use throws ISOException at the end of the declaration line?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: When must I use throws ISOException at the end of the declaration line?

Post by UNKNwYSHSA » Sat Dec 19, 2015 4:17 am

Please read this article first.
https://docs.oracle.com/javase/tutorial ... aring.html

And the ISOException
is an unchecked exception. including it in the throws clause is not mandatory.


ISOException is a RuntimeException:

Code: Select all

public class ISOException extends CardRuntimeException {
public class CardRuntimeException extends RuntimeException {
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 62 guests

JavaCard OS : Disclaimer