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

com.feingto.cloud.exception.ServiceException Maven / Gradle / Ivy

There is a newer version: 2.3.5.RELEASE
Show newest version
package com.feingto.cloud.exception;

import javax.servlet.http.HttpServletResponse;

/**
 * Service exception
 *
 * @author longfei
 */
public class ServiceException extends RuntimeException {
    private static final long serialVersionUID = 3583566093089790852L;
    private int status = HttpServletResponse.SC_INTERNAL_SERVER_ERROR;

    public int status() {
        return this.status;
    }

    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(int status, String message) {
        super(message);
        this.status = status;
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy