dk.brics.xact.analysis
Class ErrorReport

java.lang.Object
  extended by dk.brics.xact.analysis.ErrorReport
All Implemented Interfaces:
Serializable

public class ErrorReport
extends Object
implements Serializable

Describes an error reported by the XML analysis.

See Also:
Serialized Form

Nested Class Summary
static class ErrorReport.OriginComparator
          Compares error reports by their origin alone.
 
Constructor Summary
ErrorReport(Origin origin, ErrorType type, String message)
           
ErrorReport(Throwable throwable)
           
 
Method Summary
 String getMessage()
           
 Origin getOrigin()
           
 Throwable getThrowable()
           
 ErrorType getType()
           
 boolean hasOrigin()
           
 void setMessage(String message)
           
 void setOrigin(Origin origin)
           
 void setThrowable(Throwable throwable)
           
 void setType(ErrorType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorReport

public ErrorReport(Origin origin,
                   ErrorType type,
                   String message)

ErrorReport

public ErrorReport(Throwable throwable)
Method Detail

getMessage

public String getMessage()

getOrigin

public Origin getOrigin()

getThrowable

public Throwable getThrowable()

getType

public ErrorType getType()

hasOrigin

public boolean hasOrigin()

setMessage

public void setMessage(String message)

setOrigin

public void setOrigin(Origin origin)

setThrowable

public void setThrowable(Throwable throwable)

setType

public void setType(ErrorType type)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2011 Aarhus University.