Add classes to handle exceptions that occur in the Presentation layer
This commit is contained in:
12
src/main/java/com/yam/app/common/SystemException.java
Normal file
12
src/main/java/com/yam/app/common/SystemException.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.yam.app.common;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
public abstract class SystemException extends RuntimeException {
|
||||
|
||||
public SystemException(String format, Object... args) {
|
||||
super(String.format(format, args));
|
||||
}
|
||||
|
||||
public abstract HttpStatus getStatus();
|
||||
}
|
||||
Reference in New Issue
Block a user