Javatpoint Logo
Javatpoint Logo

Java Throwable getLocalizedMessage() method

It is used to get a localized (or locale-specific) description of the Throwable. It modifies the description of Throwable according to the system's locale. It converts the message's language, date, time, numbers, etc. according to the region.

Syntax

Return

It returns a localized (or locale-specific) description of the Throwable.

Example 1

Test it Now

Output:

Inside exceptionTest() method
Throwing localized message!
Next TopicJava Throwable



Help Others, Please Share

facebook twitter pinterest