public class Message
extends java.lang.Object
| Constructor and Description |
|---|
Message(int type,
java.lang.String content)
Base constructor for a Message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Returns the String content of the Message
|
int |
getType()
Returns the numerical type of the Message
|
java.lang.String |
toString()
return a string that explains the message
|
public Message(int type,
java.lang.String content)
type - the type of Message this is, either warning or errorcontent - the String contained within a Message. This is printed out
after a game runs ( or fails to run )public int getType()
public java.lang.String getContent()
public java.lang.String toString()
toString in class java.lang.Object