Class Error
java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Error
- All Implemented Interfaces:
Timestamped
-
Nested Class Summary
Nested classes/interfaces inherited from interface Timestamped
Timestamped.Adapter -
Field Summary
FieldsFields inherited from interface Timestamped
FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new error message usingan exception's messageas the message.Constructs a new error message. -
Method Summary
Methods inherited from class Message
configure, getAgent, getTimestamp, setAgent
-
Field Details
-
message
A message explaining the error
-
-
Constructor Details
-
Error
Constructs a new error message.- Parameters:
message- a string explaining the error
-
Error
Constructs a new error message usingan exception's messageas the message.- Parameters:
exception- the exception that caused an error and whose message should be sent to the agent
-
-
Method Details
-
toString
-
verify
public void verify()Description copied from class:MessageChecks that this message is correctly configured and throws an exception if not. This method should be called soon after the message has been parsed. It should check that all the necessary fields are set and that their values are legal values.
-