Package opencard.core.terminal
Class CardTerminalException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- opencard.core.OpenCardException
-
- opencard.core.terminal.CardTerminalException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CardNotPresentException
,CommunicationErrorException
,InvalidSlotChannelException
,ScriptFailedException
,TerminalInitException
,TerminalTimeoutException
public class CardTerminalException extends OpenCardException
Through a CardTerminalException we signal all exceptions upstream.- Author:
- Dirk Husemann (hud@zurich.ibm.com), Mike Wendler (mwendler@de.ibm.com), Stephan Breideneich (sbreiden@de.ibm.com)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CardTerminalException()
The empty constructor.CardTerminalException(java.lang.String s)
Constructs an object of this class.CardTerminalException(java.lang.String s, CardTerminal aTerminal)
Constructs an object of this class.CardTerminalException(java.lang.String s, CardTerminal aTerminal, int slotID)
Constructs an object of this class.CardTerminalException(java.lang.String s, CardTerminal aTerminal, Slot aSlot)
Deprecated.use CardTerminalException(String, CardTerminal, int)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardTerminal
getCardTerminal()
Gets the CardTerminal object where this exception occurred.int
getSlot()
Gets the Slot object where this exception occurred.
-
-
-
Constructor Detail
-
CardTerminalException
public CardTerminalException()
The empty constructor.
-
CardTerminalException
public CardTerminalException(java.lang.String s)
Constructs an object of this class.- Parameters:
s
- message telling a bit more about the cause of this exception
-
CardTerminalException
public CardTerminalException(java.lang.String s, CardTerminal aTerminal)
Constructs an object of this class. Information about the terminal where this exception originated is given.- Parameters:
s
- A message telling a bit more about the cause of this exceptionaTerminal
- The CardTerminal where the exception originated.
-
CardTerminalException
public CardTerminalException(java.lang.String s, CardTerminal aTerminal, Slot aSlot)
Deprecated.use CardTerminalException(String, CardTerminal, int)
-
CardTerminalException
public CardTerminalException(java.lang.String s, CardTerminal aTerminal, int slotID)
Constructs an object of this class. Information about the terminal and slot where this exception originated is given.- Parameters:
s
- A message telling a bit more about the cause of this exceptionaTerminal
- The CardTerminal where the exception originated.slotID
- The slot number where the exception originated.
-
-
Method Detail
-
getCardTerminal
public CardTerminal getCardTerminal()
Gets the CardTerminal object where this exception occurred.- Returns:
- The reference to the CardTerminal.
-
getSlot
public int getSlot()
Gets the Slot object where this exception occurred.- Returns:
- The reference to the Slot.
-
-