main
Last change
on this file was 5a9c93b, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Authorization layer
|
-
Property mode
set to
100644
|
File size:
369 bytes
|
Line | |
---|
1 | package com.example.rezevirajmasa.demo.model.exceptions;
|
---|
2 |
|
---|
3 | import org.springframework.http.HttpStatus;
|
---|
4 |
|
---|
5 | public class AppException extends RuntimeException{
|
---|
6 | private final HttpStatus code;
|
---|
7 | public AppException(String message, HttpStatus code) {
|
---|
8 | super(message);
|
---|
9 | this.code = code;
|
---|
10 | }
|
---|
11 |
|
---|
12 | public HttpStatus getCode() {
|
---|
13 | return code;
|
---|
14 | }
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.