public class Status
extends Object
Representation of the status code and message.
- Author:
- Neil Taylor
-
Constructor Summary
Constructors
Create a new status message.
-
Method Summary
int
Get a string representation of the status.
-
Constructor Details
-
Status
public Status(int code,
String message)
Create a new status message.
- Parameters:
code
- The code.
message
- The message.
-
Method Details
-
getCode
public int getCode()
Retrieve the code.
- Returns:
- The code.
-
getMessage
Get the message.
- Returns:
- The message.
-
toString
Get a string representation of the status.
- Overrides:
toString
in class Object