summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/nbi/exceptions/TechnicalException.java
blob: a2abe3e59d4fba57c73070c57a1330ed216a3db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.onap.nbi.exceptions;

import org.springframework.http.HttpStatus;

public class TechnicalException extends ApiException {

    private HttpStatus httpStatus;

    public TechnicalException(String message) {
        super(message);
        this.httpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
    }

    public TechnicalException() {
        super();
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
    }

}