Class Error
java.lang.Object
edu.uky.cs.nil.tt.io.Message
edu.uky.cs.nil.tt.io.Error
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new error message usingan exception's messageas the message.Constructs a new error message. -
Method Summary
-
Field Details
-
message
A message explaining the error
-
-
Constructor Details
-
Error
Constructs a new error message.- Parameters:
message- a string explaning 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 send 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.
-