creating an exception
Posted on 2003-11-28
i have a data file filled with records and i need to create an exception for when a record isn't found. i figure that it won't be found if the end of file has been reached before finding it. so in my exception class, would i just extend the ioexception class and then in my method code to retrieve a record, catch an eofexception and throw my exception in its catch block?