new EzDataAccessErrorBase(errorMap, fn_decode)
- Description:
데이터 에러코드 Map 객체
Parameters:
| Name | Type | Description |
|---|---|---|
errorMap |
Object | 에러 코드 명세 |
fn_decode |
function | 에러 메시지 디코딩 함수 |
Methods
contains(code, msg, errorObjopt)
- Description:
등록된 에러 메시지 존재 여부 확인
Example
EzDataAccessErrorBase.contains(code, msg);
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
code |
string | 에러 코드 |
|
msg |
string | 원본 에러메시지 |
|
errorObj |
ErrorEventInfo |
<optional> |
넥사크로 에러이벤트 정보 |
getMessage(code, msg, errorObjopt)
- Description:
메시지를 가져오는 함수
Example
EzDataAccessErrorBase.getMessage("904","");
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
code |
string | 에러 코드 |
|
msg |
string | 원본 에러메시지 |
|
errorObj |
ErrorEventInfo |
<optional> |
넥사크로 에러이벤트 정보 |
handleError(code, msg, errorObjopt)
- Description:
에러 후처리, true 리턴시 기본 처리를 계속 수행, false리턴시 기본 처리를 skip
Example
EzDataAccessErrorBase.handleError(code, msg);
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
code |
string | 에러 코드 |
|
msg |
string | 원본 에러메시지 |
|
errorObj |
ErrorEventInfo |
<optional> |
넥사크로 에러이벤트 정보 |
isAutoAlert(code, msg, errorObjopt)
- Description:
등록된 에러 메시지가 자동팝업 예외 대상인지 여부
Example
EzDataAccessErrorBase.isAutoAlert(code, msg);
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
code |
string | 에러 코드 |
|
msg |
string | 원본 에러메시지 |
|
errorObj |
ErrorEventInfo |
<optional> |
넥사크로 에러이벤트 정보 |
setErrorHandler(fn)
- Description:
errorHandler 변경
Example
EzDataAccessErrorBase.setErrorHandler((code, msg, errorObj) => {});
Parameters:
| Name | Type | Description |
|---|---|---|
fn |
function | 핸들러 함수 |
setErrorMap()
- Description:
에러 코드 정보 맵 설정 함수
Example
EzDataAccessErrorBase.setErrorMap(map);