Package javacard.framework
Class UserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javacard.framework.CardException
-
- javacard.framework.UserException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UserExceptionSubclass
public class UserException extends CardException
UserException
represents a User exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserException()
Constructs aUserException
with reason = 0.UserException(short reason)
Constructs aUserException
with the specified reason.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
throwIt(short reason)
Throws an instance ofUserException
with the specified reason.-
Methods inherited from class javacard.framework.CardException
getReason, setReason
-
-
-
-
Method Detail
-
throwIt
public static void throwIt(short reason) throws UserException
Throws an instance ofUserException
with the specified reason.- Parameters:
reason
- the reason for the exception.- Throws:
UserException
- always.
-
-