edu.cmu.sei.aadl.modelsupport.errorreporting
Class WriterInternalErrorReporter

java.lang.Object
  extended by edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractInternalErrorReporter
      extended by edu.cmu.sei.aadl.modelsupport.errorreporting.WriterInternalErrorReporter
All Implemented Interfaces:
InternalErrorReporter

public final class WriterInternalErrorReporter
extends AbstractInternalErrorReporter

An internal error reporter to sends internal error messages to the given Writer. Includes a prototype reference to an instance that sends the errors to System.out.

Author:
aarong

Field Summary
static WriterInternalErrorReporter SYSTEM_ERR
          Prototype reference that writes to the standard err.
static WriterInternalErrorReporter SYSTEM_OUT
          Prototype reference that writes to the standard out.
 
Constructor Summary
WriterInternalErrorReporter(java.io.Writer w)
           
 
Method Summary
 void internalErrorImpl(java.lang.Exception e)
           
 void internalErrorImpl(java.lang.String message)
           
 
Methods inherited from class edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractInternalErrorReporter
getNumInternalErrors, internalError, internalError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_OUT

public static final WriterInternalErrorReporter SYSTEM_OUT
Prototype reference that writes to the standard out.


SYSTEM_ERR

public static final WriterInternalErrorReporter SYSTEM_ERR
Prototype reference that writes to the standard err.

Constructor Detail

WriterInternalErrorReporter

public WriterInternalErrorReporter(java.io.Writer w)
Method Detail

internalErrorImpl

public void internalErrorImpl(java.lang.String message)
Specified by:
internalErrorImpl in class AbstractInternalErrorReporter

internalErrorImpl

public void internalErrorImpl(java.lang.Exception e)
Specified by:
internalErrorImpl in class AbstractInternalErrorReporter