Projekt

Obecné

Profil

Stáhnout (526 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
package cz.zcu.kiv.backendapi.exception;
2

    
3
import lombok.Getter;
4
import org.springframework.http.HttpStatus;
5

    
6
@Getter
7
public class ApiRequestException extends RuntimeException {
8
    private final HttpStatus httpStatus;
9

    
10
    public ApiRequestException(String message, HttpStatus httpStatus) {
11
        super(message);
12
        this.httpStatus = httpStatus;
13
    }
14

    
15
    public ApiRequestException(String message, Throwable cause, HttpStatus httpStatus) {
16
        super(message, cause);
17
        this.httpStatus = httpStatus;
18
    }
19
}
(2-2/2)