com.ibm.portal.resolver.exceptions
Class Helper
java.lang.Object
com.ibm.portal.resolver.exceptions.Helper
-
public class Helper
- extends java.lang.Object
This class provides some utility methods for exceptions.
- Since:
- 7.0
Method Summary
|
static void |
assertCause(org.eclipse.core.runtime.CoreException ex)
Make sure that the CoreException has an appropriate cause
exception |
static void |
assertCause(java.lang.Exception ex,
java.lang.Throwable cause)
Make sure that the exception has an appropriate cause exception |
static java.util.Locale |
getDefaultLocale()
|
static ListModel<java.util.Locale> |
getLocales()
Return a list of locales that exception are available in |
static java.lang.String |
getTitle(com.ibm.wps.util.MessageCode code,
java.util.Locale loc)
|
static java.lang.String |
getTitle(com.ibm.wps.util.MessageCode code,
java.lang.Object[] obj,
java.util.Locale loc)
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Helper
public Helper()
assertCause
public static void assertCause(org.eclipse.core.runtime.CoreException ex)
- Make sure that the CoreException has an appropriate cause
exception
- Parameters:
- ex -
- cause -
assertCause
public static void assertCause(java.lang.Exception ex,
java.lang.Throwable cause)
- Make sure that the exception has an appropriate cause exception
- Parameters:
- ex -
- cause -
getDefaultLocale
public static java.util.Locale getDefaultLocale()
getLocales
public static ListModel<java.util.Locale> getLocales()
- Returns a list of locales that exception are available in
- Returns:
- list of locales, not null
getTitle
public static java.lang.String getTitle(com.ibm.wps.util.MessageCode code,
java.util.Locale loc)
- Parameters:
- code -
- obj -
- loc -
- Returns:
- Since:
- 8.0.0.1
getTitle
public static java.lang.String getTitle(com.ibm.wps.util.MessageCode code,
java.lang.Object[] obj,
java.util.Locale loc)
- Parameters:
- code -
- obj -
- loc -
- Returns: