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

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

There is a newer version: 7.0.1
Show newest version
package org.flowable.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