public class ErrorMessage extends Message
Exceptions
and fatal errors, an ErrorMessage
does not stop the simulation run or exit the Java runtime.Constructor and Description |
---|
ErrorMessage(Model origin,
java.lang.String errorDescription,
java.lang.String errorLocation,
java.lang.String errorReason,
java.lang.String errorPrevention,
TimeInstant errorTime)
Creates an errormessage setting its parameters with the given values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocation()
Returns a String describing class and method that this message was sent
from.
|
java.lang.String |
getPrevention()
Returns a String giving a hint on how to prevent this error to happen.
|
java.lang.String |
getReason()
Returns the String describing the probable reason for the error to occur.
|
getDescription, getExperimentName, getModelName, getSendTime, getTime, toString
public ErrorMessage(Model origin, java.lang.String errorDescription, java.lang.String errorLocation, java.lang.String errorReason, java.lang.String errorPrevention, TimeInstant errorTime)
origin
- Model : The model this errormessage evolved fromerrorDescription
- java.lang.String : Description of the errorerrorLocation
- java.lang.String : Class and method the error occured inerrorReason
- java.lang.String : The probable reason for the errorerrorPrevention
- java.lang.String : A hint how to prevent the errorpublic java.lang.String getLocation()
public java.lang.String getPrevention()
public java.lang.String getReason()