|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ideo.sweetdev.presentation.service.error.ErrorHelper
ErrorHelper2 instead.
The class ErrorHelper class allows to use the Error service of SweetDev framework.
![]() |
![]() |
![]() |
![]() |
| Field Summary | |
protected static java.lang.String |
CLASS_NAME
Deprecated. nom de la classe |
| Method Summary | |
static IErrorService |
getErrorService()
Deprecated. get the IErrorService unique instance |
static boolean |
isEmpty(IUser _user)
Deprecated. check if an error is already stored |
static void |
saveError(IUser _user,
java.lang.Throwable _throwable,
java.lang.String _className)
Deprecated. records the error messages and displays them |
static void |
saveErrors(IUser _user,
java.util.Collection _errors,
java.lang.String _className)
Deprecated. records the list of error messages and displays them |
static void |
saveMessage(java.lang.String _key,
java.lang.Object[] _parameters,
java.lang.String _type,
java.lang.Integer _indent,
IUser _user)
Deprecated. records the error messages and displays them |
static void |
saveMessage(java.lang.Throwable _throwable,
java.lang.String _className,
IUser _user,
java.lang.Integer _indent)
Deprecated. records the error messages and displays them |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String CLASS_NAME
| Method Detail |
public static boolean isEmpty(IUser _user)
_user - a user
public static IErrorService getErrorService()
public static void saveError(IUser _user,
java.lang.Throwable _throwable,
java.lang.String _className)
_user - the user_throwable - the exception where the error comes from_className - name of the class that raised the error
public static void saveErrors(IUser _user,
java.util.Collection _errors,
java.lang.String _className)
_user - the user_errors - the collection of ActionMessage to save_className - name of the class that raised the list of errors
public static void saveMessage(java.lang.Throwable _throwable,
java.lang.String _className,
IUser _user,
java.lang.Integer _indent)
_throwable - the exception where the error comes from_className - name of the class that raised the error_user - the user_indent - indentation level.
public static void saveMessage(java.lang.String _key,
java.lang.Object[] _parameters,
java.lang.String _type,
java.lang.Integer _indent,
IUser _user)
_key - key of the message to display_parameters - message parameters (peut etre null)_type - message type : ActionMessage.ERROR, ActionMessage.MESSAGE,
ActionMessage.WARNING_indent - indentation level : ActionMessage.LEVEL_0, ActionMessage.LEVEL_1,
ActionMessage.LEVEL_2,_user - the user
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||