Class JsonResultWrapper.Result

java.lang.Object
de.iip_ecosphere.platform.support.json.JsonResultWrapper.Result
All Implemented Interfaces:
Serializable
Enclosing class:
JsonResultWrapper

public static class JsonResultWrapper.Result extends Object implements Serializable
Represents the result w/o exception.
Author:
Holger Eichelberger, SSE
See Also:
  • Field Details

  • Constructor Details

    • Result

      private Result()
      Creates a result object (for JSON).
    • Result

      private Result(String result)
      Creates a result object for a result value.
      Parameters:
      result - the result value
    • Result

      private Result(Throwable ex)
      Creates a result object for an exceptional situation.
      Parameters:
      ex - the exception
  • Method Details

    • getResult

      public String getResult()
      Returns the result.
      Returns:
      the result
    • getException

      public String getException()
      Returns the exception text.
      Returns:
      the exception text
    • isException

      public boolean isException()
      Returns whether this object represents an exception.
      Returns:
      true for exception, false for normal execution
    • setResult

      public void setResult(String result)
      Defines the result.
      Parameters:
      result - the result
    • setException

      public void setException(String exception)
      Defines the exception text.
      Parameters:
      exception - the exception text