Report question

Question: Why String.indexOf do not use exception but return -1 when substring not found?