com.adventnet.utils.agent
Interface AgentErrorListener


public interface AgentErrorListener

This interface defines the methods to handle the exceptions thrown from the agent code.The user has to implement this interface and register the class with the utils class to handle the errors.


Method Summary
 void handleError(java.lang.Exception e)
          Handles any critical error that is thrown from the agent code.
 void handleError(java.lang.String str)
          Handles any critical error messages that is thrown from the agent code.
 void handleTrace(java.lang.Exception e)
          Handles any trace exceptions thrown from the agent code.
 void handleTrace(java.lang.String str)
          Handles any trace messages thrown from the agent code.
 void handleWarning(java.lang.Exception e)
          Handles any harmless exceptions thrown from the agent code.
 void handleWarning(java.lang.String str)
          Handles any harmless messages thrown from the agent code.
 

Method Detail

handleError

public void handleError(java.lang.Exception e)
Handles any critical error that is thrown from the agent code.
Parameters:
e - The exception type.

handleWarning

public void handleWarning(java.lang.Exception e)
Handles any harmless exceptions thrown from the agent code.
Parameters:
e - The Warning Exceptions.

handleTrace

public void handleTrace(java.lang.Exception e)
Handles any trace exceptions thrown from the agent code.
Parameters:
e - The Trace Exceptions.

handleError

public void handleError(java.lang.String str)
Handles any critical error messages that is thrown from the agent code.
Parameters:
str - The Error message.

handleWarning

public void handleWarning(java.lang.String str)
Handles any harmless messages thrown from the agent code.
Parameters:
str - The Warning Message.

handleTrace

public void handleTrace(java.lang.String str)
Handles any trace messages thrown from the agent code.
Parameters:
str - The Trace message.