Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 177

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

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

JSR 177

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 177 specification.