Overview Package Class Tree Serialized Deprecated Index Help PREV class NEXT class SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
com.ibm.portal
Class ModelExceptionjava.lang.Object java.lang.Throwable java.lang.Exception com.ibm.portal.ModelException
- All Implemented Interfaces:
- Localized, java.io.Serializable
- Direct Known Subclasses:
- DataException, NlsModelException, ObjectNotFoundException
- public abstract class ModelException
- extends java.lang.Exception
- implements Localized
Occurs when anything unexpected happened while using model API related functions. Root exception, hould be sub-classed by specific exceptions.
- Since:
- 5.1
- See Also:
- Serialized Form
Constructor Summary protected ModelException()
Empty constructorModelException(java.lang.Throwable cause)
Initializes the exception with the reason of the exception.
Method Summary java.lang.String java.util.Locale)">getDescription(java.util.Locale aLocale)
Returns the description of this object in the given locale.ListModel getLocales()
Returns a list model containing the locales that are supported by this object.java.lang.String java.util.Locale)">getTitle(java.util.Locale aLocale)
Returns the title of this object in the given locale.
Methods inherited from class java.lang.Throwable fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail ModelException
protected ModelException()
- Empty constructor
ModelException
public ModelException(java.lang.Throwable cause)
- Initializes the exception with the reason of the exception.
- Parameters:
- cause - Root cause.
java.util.Locale)">
Method Detail getDescription
public java.lang.String getDescription(java.util.Locale aLocale)
- Description copied from interface: Localized
- Returns the description of this object in the given locale.
- Specified by:
- java.util.Locale)">getDescription in interface Localized
- Parameters:
- aLocale - the locale for which to retrieve the description, must not be
null.
- Returns:
- the description of this node in the given locale. If a title is not available in the given locale, this method will return
null. It is up to the invoker of the method to implement an appropriate fallback mechanism
getLocales
public ListModel getLocales()
- Description copied from interface: Localized
- Returns a list model containing the locales that are supported by this object. The presence of a locale in this list does not mean that a title and description is available, but rather that either one or both are available in that locale.
- Specified by:
- getLocales in interface Localized
- Returns:
- a list of locales defined for this object, returns an empty ListModel if no locales are supported.
java.util.Locale)">getTitle
public java.lang.String getTitle(java.util.Locale aLocale)
- Description copied from interface: Localized
- Returns the title of this object in the given locale.
- Specified by:
- java.util.Locale)">getTitle in interface Localized
- Parameters:
- aLocale - the locale for which to retrieve the title, must not be
null.
- Returns:
- the title of this node in the given locale. If a title is not available in the given locale, this method will return
null. It is up to the invoker of the method to implement an appropriate fallback mechanism.
Overview Package Class Tree Serialized Deprecated Index Help PREV class NEXT class SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.