com.sas.util.errorhandlers
Interface ErrorHandlerInterface

All Known Implementing Classes:
CompositeErrorHandler, MessageBoxErrorHandler, PrintlnErrorHandler, StringDataErrorHandler, SystemLog

public interface ErrorHandlerInterface

ErrorHandlerInterface is designed to allow components which want to handle error messages a way to pass the necessary information to an object which will display, log, or act on them in some way.


Method Summary
 void handleError(com.sas.ComponentInterface component, com.sas.text.Message message, java.lang.String messageCode)
          handleError should perform whatever action is desired when an error occurs.
 

Method Detail

handleError

void handleError(com.sas.ComponentInterface component,
                 com.sas.text.Message message,
                 java.lang.String messageCode)
handleError should perform whatever action is desired when an error occurs. Examples might be displaying a MessageBox, writing a message to the log, or printing a message to a stream.

Parameters:
component - The component on which the error occured.
message - A Message object with formatted with the message to display. The object should also contain the necessary arguments for formatting the message.
messageCode - A non-translatable string which indicates the type of error that occured.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.