Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DynamicStringCollectionException extends Exception {
- private int index;
- public DynamicStringCollectionException(int index){
- this.index = index;
- }
- @Override
- public String getMessage() {
- return "Invalid index: " + index;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement