< prev index next >
src/java.base/share/classes/java/lang/Throwable.java
Print this page
rev 53693 : wq8218628: Add detailed message to NullPointerException describing what is null.
*** 380,389 ****
--- 380,396 ----
*/
public String getMessage() {
return detailMessage;
}
+ /*
+ * Sets the detail message string of this throwable.
+ */
+ void setMessage(String message) {
+ detailMessage = message;
+ }
+
/**
* Creates a localized description of this throwable.
* Subclasses may override this method in order to produce a
* locale-specific message. For subclasses that do not override this
* method, the default implementation returns the same result as
< prev index next >