com.fengduo.spark.web.rest.RestException.java Source code

Java tutorial

Introduction

Here is the source code for com.fengduo.spark.web.rest.RestException.java

Source

/*
 * Copyright 2015-2020 MSUN.comm All right reserved. This software is the confidential and proprietary information of
 * MSUN.comm ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with MSUN.comm.
 */
package com.fengduo.spark.web.rest;

import org.springframework.http.HttpStatus;

/**
 * @author zxc
 */
public class RestException extends RuntimeException {

    private static final long serialVersionUID = -741160051865240916L;

    public HttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;

    public RestException() {
    }

    public RestException(HttpStatus status) {
        this.status = status;
    }

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

    public RestException(HttpStatus status, String message) {
        super(message);
        this.status = status;
    }
}