Add Error messages in rest response
[nonrtric/plt/rappmanager.git] / rapp-manager-models / src / main / java / com / oransc / rappmanager / models / exception / RappHandlerException.java
1 package com.oransc.rappmanager.models.exception;
2
3 import lombok.Getter;
4 import org.springframework.http.HttpStatusCode;
5
6 @Getter
7 public class RappHandlerException extends RuntimeException {
8
9     private final HttpStatusCode statusCode;
10
11     public RappHandlerException(HttpStatusCode statusCode, String message) {
12         super(message);
13         this.statusCode = statusCode;
14
15     }
16
17 }