# src/scripts/CDP/Framework/ErrorDefs.js

## Maintainability

72.22

## Lines of code

31

## Difficulty

14.88

## Estimated Errors

0.28

## Function weight

### By Complexity

### By SLOC

var CDP; (function (CDP) { // @internal Error code offset definition of `cdp-framework-jqm`. var RESULT_CODE_BASE; (function (RESULT_CODE_BASE) { RESULT_CODE_BASE[RESULT_CODE_BASE["CDP_FRAMEWORK_DECLARERATION"] = 0] = "CDP_FRAMEWORK_DECLARERATION"; RESULT_CODE_BASE[RESULT_CODE_BASE["CDP_FRAMEWORK"] = 4 * CDP._MODULE_RESULT_CODE_RANGE_CDP] = "CDP_FRAMEWORK"; })(RESULT_CODE_BASE = CDP.RESULT_CODE_BASE || (CDP.RESULT_CODE_BASE = {})); /////////////////////////////////////////////////////////////////////// // module error declaration: var FUNCTION_CODE_RANGE = 10; // @internal cdp.framework.jqm 内のローカルコードオフセット値 var LOCAL_CODE_BASE; (function (LOCAL_CODE_BASE) { LOCAL_CODE_BASE[LOCAL_CODE_BASE["CORE_API"] = 0] = "CORE_API"; LOCAL_CODE_BASE[LOCAL_CODE_BASE["ROUTER"] = 1 * FUNCTION_CODE_RANGE] = "ROUTER"; LOCAL_CODE_BASE[LOCAL_CODE_BASE["PAGE"] = 2 * FUNCTION_CODE_RANGE] = "PAGE"; })(LOCAL_CODE_BASE || (LOCAL_CODE_BASE = {})); /* tslint:disable:max-line-length */ // Error code definition of `cdp-framework-jqm`. var RESULT_CODE; (function (RESULT_CODE) { RESULT_CODE[RESULT_CODE["ERROR_CDP_FRAMEWORK_DECLARATION"] = 0] = "ERROR_CDP_FRAMEWORK_DECLARATION"; /** `en` [[CDP.Framework.initialize]]() failer code. <br> `ja` [[CDP.Framework.initialize]]() のエラーコード */ RESULT_CODE[RESULT_CODE["ERROR_CDP_FRAMEWORK_INITIALIZE_FAILED"] = CDP.DECLARE_ERROR_CODE(RESULT_CODE_BASE.CDP_FRAMEWORK, LOCAL_CODE_BASE.CORE_API + 1, "framework initialize failed.")] = "ERROR_CDP_FRAMEWORK_INITIALIZE_FAILED"; /** `en` [[CDP.Router._initialize]]() failer code. <br> `ja` [[CDP.Router._initialize]]() のエラーコード */ RESULT_CODE[RESULT_CODE["ERROR_CDP_FRAMEWORK_ROUTER_INITIALIZE_FAILED"] = CDP.DECLARE_ERROR_CODE(RESULT_CODE_BASE.CDP_FRAMEWORK, LOCAL_CODE_BASE.ROUTER + 1, "router initialize failed.")] = "ERROR_CDP_FRAMEWORK_ROUTER_INITIALIZE_FAILED"; })(RESULT_CODE = CDP.RESULT_CODE || (CDP.RESULT_CODE = {})); /* tslint:enable:max-line-length */ })(CDP || (CDP = {})); //# sourceMappingURL=data:application/json;base64,