Yes, OCF shall generate an Exception in the case you asked.  When I look into
the API doc it says clear and simple for SmartCard.getCardService that it throws
....

      "java.lang.ClassNotFoundException - Thrown when no CardService
       implementing clazz exists for this card.
       CardServiceException - Thrown when a service was found but failed to
       initialize."

         Frank Seliger
IBM Pervasive Computing Division
Schoenaicher Str. 220,    71032 Boeblingen,   Germany
[EMAIL PROTECTED]                                   Tel.  +49-7031-16-3142


[EMAIL PROTECTED] on 2000-01-31 17:21:46

Please respond to "Mykhailo Lyubich" <[EMAIL PROTECTED]>

To:   "Open Card" <[EMAIL PROTECTED]>
cc:    (bcc: Frank Seliger/Germany/IBM)
Subject:  [OCF]  UNSUPPORTED cards




Hi there,

Shall OCF generate an Exception in the case of service instantiation for
unsupported cards.

An example:
...
 fileService = (FileAccessCardService)
        card.getCardService(FileAccessCardService.class, true);
...

Suppose, inserted card does not support FileAccessCardService.
Will OCF generate an Exception  in this case or not? Is this
a developer issue to implement this mechanism?

Regards

Mykhailo Lyubich
Dept.of Computer Science    office phone +49-381-4983407
University of Rostock       office fax   +49-381-4983440
Albert Einstein Strasse 21
http://wwwtec.informatik.uni-rostock.de/~ljubich/
D-18051 Rostock, Germany    mailto:[EMAIL PROTECTED]



---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe
! in the body.






---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to