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 void
clear()
Remove all errors from the handlerString
getError(String errorKey)
Obtain the specifed error from the handler.Map<String,String>
getErrors()
Obtain all the errors recordedvoid
recordError(String errorKey, String message)
Record a errorvoid
removeError(String errorKey)
Remove a specific error from the handler.
-
-
-
Method Detail
-
recordError
public void recordError(String errorKey, String message)
Description copied from interface:AdminErrorHandler
Record a error- Specified by:
recordError
in interfaceAdminErrorHandler
-
getErrors
public Map<String,String> getErrors()
Description copied from interface:AdminErrorHandler
Obtain all the errors recorded- Specified by:
getErrors
in interfaceAdminErrorHandler
-
clear
public void clear()
Description copied from interface:AdminErrorHandler
Remove all errors from the handler- Specified by:
clear
in interfaceAdminErrorHandler
-
removeError
public void removeError(String errorKey)
Description copied from interface:AdminErrorHandler
Remove a specific error from the handler.- Specified by:
removeError
in interfaceAdminErrorHandler
-
getError
public String getError(String errorKey)
Description copied from interface:AdminErrorHandler
Obtain the specifed error from the handler.- Specified by:
getError
in interfaceAdminErrorHandler
- Returns:
- The error details
-
-