Add classes to handle exceptions that occur in the Presentation layer

This commit is contained in:
Rebwon
2021-09-20 21:01:58 +09:00
committed by MaengSol
parent 8cb9d52d8b
commit f20b50601b
22 changed files with 260 additions and 73 deletions

View 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();
}