CardException.java revision 2362
2122N/A/*
2362N/A * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
2122N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2122N/A *
2122N/A * This code is free software; you can redistribute it and/or modify it
2122N/A * under the terms of the GNU General Public License version 2 only, as
2122N/A * published by the Free Software Foundation. Oracle designates this
2122N/A * particular file as subject to the "Classpath" exception as provided
2122N/A * by Oracle in the LICENSE file that accompanied this code.
2122N/A *
2122N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2122N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2122N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2122N/A * version 2 for more details (a copy is included in the LICENSE file that
2122N/A * accompanied this code).
2122N/A *
2122N/A * You should have received a copy of the GNU General Public License version
2122N/A * 2 along with this work; if not, write to the Free Software Foundation,
2362N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2122N/A * or visit www.oracle.com if you need additional information or have any
2122N/A * questions.
2122N/A */
2122N/A
2122N/Apackage javax.smartcardio;
2122N/A
2122N/A/**
2122N/A * Exception for errors that occur during communication with the
2122N/A * Smart Card stack or the card itself.
2122N/A *
2122N/A * @since 1.6
2122N/A * @author Andreas Sterbenz
2122N/A * @author JSR 268 Expert Group
2122N/A */
2122N/Apublic class CardException extends Exception {
2122N/A
2122N/A private static final long serialVersionUID = 7787607144922050628L;
2122N/A
2122N/A /**
2122N/A * Constructs a new CardException with the specified detail message.
2122N/A *
2122N/A * @param message the detail message
2122N/A */
2122N/A public CardException(String message) {
2122N/A super(message);
2122N/A }
2122N/A
2122N/A /**
2122N/A * Constructs a new CardException with the specified cause and a detail message
2122N/A * of <code>(cause==null ? null : cause.toString())</code>.
2122N/A *
2122N/A * @param cause the cause of this exception or null
2122N/A */
2122N/A public CardException(Throwable cause) {
2122N/A super(cause);
2122N/A }
2122N/A
2122N/A /**
2122N/A * Constructs a new CardException with the specified detail message and cause.
2122N/A *
2122N/A * @param message the detail message
2122N/A * @param cause the cause of this exception or null
2122N/A */
2122N/A public CardException(String message, Throwable cause) {
2122N/A super(message, cause);
2122N/A }
2122N/A}
2122N/A