com.atlassian.bamboo.logger
Class AdminErrorHandlerImpl

java.lang.Object
  extended by com.atlassian.bamboo.logger.AdminErrorHandlerImpl
All Implemented Interfaces:
AdminErrorHandler

@ThreadSafe
public class AdminErrorHandlerImpl
extends java.lang.Object
implements AdminErrorHandler


Constructor Summary
AdminErrorHandlerImpl()
           
 
Method Summary
 void clear()
          Remove all errors from the handler
 java.lang.String getError(java.lang.String errorKey)
          Obtain the specifed error from the handler.
 java.util.Map<java.lang.String,java.lang.String> getErrors()
          Obtain all the errors recorded
 void recordError(java.lang.String errorKey, java.lang.String message)
          Record a error
 void removeError(java.lang.String errorKey)
          Remove a specific error from the handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminErrorHandlerImpl

public AdminErrorHandlerImpl()
Method Detail

recordError

public void recordError(java.lang.String errorKey,
                        java.lang.String message)
Description copied from interface: AdminErrorHandler
Record a error

Specified by:
recordError in interface AdminErrorHandler

getErrors

public java.util.Map<java.lang.String,java.lang.String> getErrors()
Description copied from interface: AdminErrorHandler
Obtain all the errors recorded

Specified by:
getErrors in interface AdminErrorHandler

clear

public void clear()
Description copied from interface: AdminErrorHandler
Remove all errors from the handler

Specified by:
clear in interface AdminErrorHandler

removeError

public void removeError(java.lang.String errorKey)
Description copied from interface: AdminErrorHandler
Remove a specific error from the handler.

Specified by:
removeError in interface AdminErrorHandler

getError

public java.lang.String getError(java.lang.String errorKey)
Description copied from interface: AdminErrorHandler
Obtain the specifed error from the handler.

Specified by:
getError in interface AdminErrorHandler
Returns:
The error details


Copyright © 2010 Atlassian. All Rights Reserved.