java exception override message

Solutions on MaxInterview for java exception override message by the best coders in the world

showing results for - "java exception override message"
Renata
14 Aug 2020
1// Most exception classes provide a constructor requesting a String.
2// Check the API of your superclass.
3
4public class PersonalException extends RuntimeException{
5  
6	public PersonalException() {
7		super("This is a message for you! Something went wrong...");
8	}
9}