Class Status

java.lang.Object
org.purl.sword.client.Status

public class Status extends Object
Representation of the status code and message.
Author:
Neil Taylor
  • 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

      public String getMessage()
      Get the message.
      Returns:
      The message.
    • toString

      public String toString()
      Get a string representation of the status.
      Overrides:
      toString in class Object