Class StockFormatException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalArgumentException
                          |
                          +--StockFormatException
All Implemented Interfaces:
Serializable

public class StockFormatException
extends IllegalArgumentException

Assignment 1 (HKex)

This exception is thrown if an attempt is made to initialize a Stock object with badly formed data.

See Also:
Stock, Serialized Form

Constructor 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

StockFormatException

public StockFormatException(String s)
message constructor

When thrown, this constructor expects to receive the badly formed data. This is output, along with a description of the expected format.

Parameters:
s - the badly formed data