creating an exception

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?

the number of records is unknown but lets say there are 25. if the record number supplied is 30, then there will be an eofexception, because to get to that record the number of bytes i skip is the record number * the number of bytes in a record

Exceptions, by definition, are concerned with unforeseen conditions in a program. The potential absence of a record is not such a condition. It's a perfectly normal outcome of a normal run of a program and should not cause an exception.

For customizing the look of your lightweight component and making it look lucid like it was made of glass.
Or: how to make your component more Apple-ish ;)
This tip assumes your component to be of rectangular shape and completely opaque.
(COD…

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all. Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …

Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it.
Define Error Message:
Line Numbers:
Type of Error:
Break Down…