초기소스

This commit is contained in:
jazz
2025-10-29 17:08:05 +09:00
parent e531aa9540
commit 439a379a02
7551 changed files with 1234427 additions and 3 deletions

View File

@@ -0,0 +1,37 @@
package com.wb.domainserver.exception;
import com.wb.domainserver.exception.code.ErrCode;
import lombok.Getter;
@Getter
public class WnbtWebClientException extends RuntimeException{
private String code;
private String codeNumber;
private ErrCode errCode;
public WnbtWebClientException(){}
public WnbtWebClientException(String code, String message){
super(message);
this.code = code;
}
public WnbtWebClientException(ErrCode errCode) {
super(errCode.getMessage());
this.code = String.valueOf(errCode.getStatus());
this.codeNumber = String.valueOf(errCode.getStatusCode());
this.errCode = errCode;
}
public WnbtWebClientException(ErrCode errCode, String customMessage) {
super(customMessage);
this.code = String.valueOf(errCode.getStatus());
this.codeNumber = String.valueOf(errCode.getStatusCode());
this.errCode = errCode;
}
public WnbtWebClientException(String message, Throwable cause){
super(message, cause);
}
}