javacard.framework
Class UserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javacard.framework.CardException
              extended by 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
UserException()
          Constructs a UserException with reason = 0.
UserException(short reason)
          Constructs a UserException with the specified reason.
 
Method Summary
static void throwIt(short reason)
          Throws an instance of UserException with the specified reason.
 
Methods inherited from class javacard.framework.CardException
getReason, setReason
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserException

public UserException()
Constructs a UserException with reason = 0.


UserException

public UserException(short reason)
Constructs a UserException with the specified reason.

Parameters:
reason - the reason for the exception.
Method Detail

throwIt

public static void throwIt(short reason)
                    throws UserException
Throws an instance of UserException with the specified reason.

Parameters:
reason - the reason for the exception.
Throws:
UserException - always.


Copyright (c) Copyright © 1998, 2010, Oracle and/or its affiliates. All rights reserved.