@PublicApi public class InvalidOperationException extends Exception
This Exception should normally be used for "expected" errors where it is meaningful to display the error message to the end user.
Host applications throwing this Exception are expected to localise the message into the locale of the currently
logged in user. Consumers catching this Exception are encouraged to use getLocalizedMessage()
in order
to get the translated error message.
Constructor and Description |
---|
InvalidOperationException(String message,
String localizedMessage) |
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage()
Returns the error message in the locale of the currently logged in user.
|
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getLocalizedMessage()
If no user is logged in, this should use the default locale for the host application.
getLocalizedMessage
in class Throwable
Throwable.getMessage()
Copyright © 2015 Atlassian. All rights reserved.