This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
you probably want to throw the exception from the method if you don't want to deal with it.
or if it is normal ( not an error ) to have to a substring length greater than the length of the String then deal with it in the method to avoid the error. The former is more of a "What the heck! a String shorter than the substring length! Stop the program, we have an error!" compared to the latter code block which is more of a "Just wanted to make sure the String was shorter than the specified max. Carry on." Jamie