set the message of an exception code example
Example: java exception override message
// Most exception classes provide a constructor requesting a String.
// Check the API of your superclass.
public class PersonalException extends RuntimeException{
public PersonalException() {
super("This is a message for you! Something went wrong...");
}
}