Package com.scriptel.proscript.cardswipe
Class CardSwipeInvalidException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.scriptel.proscript.cardswipe.CardSwipeInvalidException
-
- All Implemented Interfaces:
java.io.Serializable
public class CardSwipeInvalidException extends java.lang.Exception
This exception is thrown when there is a problem parsing a card swipe string.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CardSwipeInvalidException(java.lang.String msg, int pos)
Constructor, creates a new exception of this type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPosition()
Gets the position in the string the error occurred.java.lang.String
toString()
Gets a human readable version of this object.
-
-
-
Method Detail
-
getPosition
public int getPosition()
Gets the position in the string the error occurred.- Returns:
- the position the error occurred
-
toString
public java.lang.String toString()
Gets a human readable version of this object.- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- Human readable version of this object.
-
-