Package com.atlassian.bamboo.logger
Class AdminErrorHandlerImpl
- java.lang.Object
-
- com.atlassian.bamboo.logger.AdminErrorHandlerImpl
-
- All Implemented Interfaces:
AdminErrorHandler
@ThreadSafe public class AdminErrorHandlerImpl extends Object implements AdminErrorHandler
-
-
Constructor Summary
Constructors Constructor Description AdminErrorHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Remove all errors from the handlerStringgetError(String errorKey)Obtain the specifed error from the handler.Map<String,String>getErrors()Obtain all the errors recordedvoidrecordError(String errorKey, String message)Record a errorvoidremoveError(String errorKey)Remove a specific error from the handler.
-
-
-
Method Detail
-
recordError
public void recordError(String errorKey, String message)
Description copied from interface:AdminErrorHandlerRecord a error- Specified by:
recordErrorin interfaceAdminErrorHandler
-
getErrors
public Map<String,String> getErrors()
Description copied from interface:AdminErrorHandlerObtain all the errors recorded- Specified by:
getErrorsin interfaceAdminErrorHandler
-
clear
public void clear()
Description copied from interface:AdminErrorHandlerRemove all errors from the handler- Specified by:
clearin interfaceAdminErrorHandler
-
removeError
public void removeError(String errorKey)
Description copied from interface:AdminErrorHandlerRemove a specific error from the handler.- Specified by:
removeErrorin interfaceAdminErrorHandler
-
getError
public String getError(String errorKey)
Description copied from interface:AdminErrorHandlerObtain the specifed error from the handler.- Specified by:
getErrorin interfaceAdminErrorHandler- Returns:
- The error details
-
-