|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStatus
Provides methods to retrieve error data.
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the exception cause if any. |
IStatus[] |
getChildren()
Returns children of a status. |
java.lang.String |
getCode()
Returns the error code or an empty string if the code is not available. |
java.lang.String |
getMessage()
Returns an error message. |
java.lang.String |
getMessage(java.util.Locale locale)
Returns an error message based on the given locale without error code. |
Severity |
getSeverity()
Returns the severity of the error. |
boolean |
hasChildren()
Tells if the status has children. |
Method Detail |
---|
java.lang.String getMessage()
Same behavior as getMessage(Locale)
with Locale.getDefault()
.
getMessage(Locale)
java.lang.String getMessage(java.util.Locale locale)
If the message for the provided locale is not available, a message in English is returned.
locale
- The locale. Use Locale.getDefault()
if locale is null.
Severity getSeverity()
Severity
objectjava.lang.String getCode()
java.lang.Throwable getCause()
Throwable
objectboolean hasChildren()
true
if the status has children, false
otherwisegetChildren()
IStatus[] getChildren()
Use hasChildren()
to prevent from useless array allocation.
IStatus
objectshasChildren()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |