org.inspektr.error
Interface ErrorReporter

All Known Implementing Classes:
CommonsLoggingErrorReporter

public interface ErrorReporter

Interface for reporting an error. Concrete implementations may choose to report errors via different means, e.g. log files, database, email.

Since:
1.0
Version:
$Revision: 1.3 $ $Date: 2007/07/11 20:48:46 $
Author:
Alice Leung

Method Summary
 void reportError(String applicationCode, String principal, String errorDescription)
          Reports the specified error.
 void reportError(String applicationCode, String principal, Throwable throwable)
          Reports the specified Throwable.
 

Method Detail

reportError

void reportError(String applicationCode,
                 String principal,
                 String errorDescription)
Reports the specified error.

Parameters:
applicationCode - The application identifier.
principal - Optional application-specific context information on the principal incurring the error.
errorDescription - Details on the error.

reportError

void reportError(String applicationCode,
                 String principal,
                 Throwable throwable)
Reports the specified Throwable.

Parameters:
applicationCode - The application identifier.
principal - Optional application-specific context information on the principal incurring the error.
throwable - The Throwable to be reported.


Copyright © 2007-2012. All Rights Reserved.