java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--java.lang.IllegalArgumentException | +--StockFormatException
Assignment 1 (HKex)
This exception is thrown if an attempt is made to initialize a
Stock
object with badly formed data.
Stock
, Serialized FormConstructor Summary | |
StockFormatException(String s)
message constructor |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StockFormatException(String s)
When thrown, this constructor expects to receive the badly formed data. This is output, along with a description of the expected format.
s
- the badly formed data