com.sun.javacard.javax.smartcard.rmiclient
Class CardRuntimeExceptionSubclass
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javacard.framework.CardRuntimeException
com.sun.javacard.javax.smartcard.rmiclient.CardRuntimeExceptionSubclass
- All Implemented Interfaces:
- java.io.Serializable
public class CardRuntimeExceptionSubclass
- extends CardRuntimeException
This exception class represents a subclass of CardRuntimeException on
the card.
The CardRuntimeException class on the card
defines a field reason and two accessor methods
getReason() and setReason(). The reason
field encapsulates exception cause identifier in the Java Card API.
All Java Card API unchecked Exception classes on the card should extend
CardRuntimeException.
- See Also:
- Serialized Form
|
Constructor Summary |
CardRuntimeExceptionSubclass(java.lang.String msg,
short reason)
Construct a CardRuntimeExceptionSubclass instance with the specified reason and
the specified error message. |
|
Method Summary |
java.lang.String |
getMessage()
Returns the error message string of this throwable object. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CardRuntimeExceptionSubclass
public CardRuntimeExceptionSubclass(java.lang.String msg,
short reason)
- Construct a CardRuntimeExceptionSubclass instance with the specified reason and
the specified error message.
- Parameters:
msg - the associated message stringreason - the reason for the exception
getMessage
public java.lang.String getMessage()
- Returns the error message string of this throwable object.
- Overrides:
getMessage in class java.lang.Throwable
- Returns:
- the error message string of this Throwable object if it was created with
an error message string; or null if it was created with no error message.
Copyright (c) Copyright © 1998, 2010, Oracle and/or its affiliates. All rights reserved.