All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.rest.exception.ErrorInfo Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package org.activiti.rest.exception;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class ErrorInfo {

  private String message;
  private String exception;

  public ErrorInfo(String message, Exception ex) {
      this.message = message;
      if (ex != null) {
        this.exception = ex.getLocalizedMessage();
      }
  }

  public String getMessage() {
      return message;
  }

  public void setMessage(String message) {
      this.message = message;
  }
  
  public void setException(String exception) {
      this.exception = exception;
  }
  
  @JsonInclude(Include.NON_NULL)
  public String getException() {
      return exception;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy