Class WebserviceResult


  • public class WebserviceResult
    extends Object
    Defines the result of the execution of a web service operation. The result contains in `code` the value zero if the execution was successful or a negative number as error code if an error occurred. In case of an error code, `description` contains a description of the error and `stackTrace` contains the Java stack trace if an exception occurred.
    • Constructor Detail

      • WebserviceResult

        public WebserviceResult()
    • Method Detail

      • getCode

        @Nullable
        public @Nullable Integer getCode()
        The error code of the operation. For a successful operation, this value must be zero. If you get any other negative value, the execution has failed.
        Returns:
        code
      • setCode

        public void setCode​(Integer code)
      • getDescription

        @Nullable
        public @Nullable String getDescription()
        A description of the operation“s result.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getExitCode

        @Nullable
        public @Nullable Integer getExitCode()
        The exit code of an external application, if such an application was used for the operation.
        Returns:
        exitCode
      • setExitCode

        public void setExitCode​(Integer exitCode)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object