Spring Boot2 (6) – Spring Exception Handling with ControllerAdvice
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.rest.api.advice.exception;
|
||||
|
||||
public class CUserNotFoundException extends RuntimeException {
|
||||
public CUserNotFoundException(String msg, Throwable t) {
|
||||
super(msg, t);
|
||||
}
|
||||
|
||||
public CUserNotFoundException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public CUserNotFoundException() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user