1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| package com.talentcard.server.common;
|
| public class BusinessException extends RuntimeException {
|
| private final ErrorCode errorCode;
|
| public BusinessException(ErrorCode errorCode, String message) {
| super(message);
| this.errorCode = errorCode;
| }
|
| public ErrorCode errorCode() {
| return errorCode;
| }
| }
|
|