Package Exports
- nv-cli-try-catch
- nv-cli-try-catch/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nv-cli-try-catch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nv-cli-try-catch
- nv-cli-try-catch
- cli tool, generate many nested-try-catch blocks
install
- npm install nv-cli-try-catch -g
usage
example
nv-cli-try-catch# nv_try_quick -d 1
function _try_catch_finally(ctx) {
let rslt;
let exceptions=[];
////
try {
} catch(err_1_0) {
exceptions.push(err_1_0)
} finally {
}
////
return({rslt,exceptions});
}
nv-cli-try-catch# nv_try_quick -d 2
function _try_catch_finally(ctx) {
let rslt;
let exceptions=[];
////
try {
try {
} catch(err_2_0) {
exceptions.push(err_2_0)
} finally {
}
} catch(err_1_0) {
exceptions.push(err_1_0)
try {
} catch(err_2_1) {
exceptions.push(err_2_1)
} finally {
}
} finally {
try {
} catch(err_2_2) {
exceptions.push(err_2_2)
} finally {
}
}
////
return({rslt,exceptions});
}
nv-cli-try-catch# nv_try_quick -d 3
function _try_catch_finally(ctx) {
let rslt;
let exceptions=[];
////
try {
try {
try {
} catch(err_3_0) {
exceptions.push(err_3_0)
} finally {
}
} catch(err_2_0) {
exceptions.push(err_2_0)
try {
} catch(err_3_1) {
exceptions.push(err_3_1)
} finally {
}
} finally {
try {
} catch(err_3_2) {
exceptions.push(err_3_2)
} finally {
}
}
} catch(err_1_0) {
exceptions.push(err_1_0)
try {
try {
} catch(err_3_3) {
exceptions.push(err_3_3)
} finally {
}
} catch(err_2_1) {
exceptions.push(err_2_1)
try {
} catch(err_3_4) {
exceptions.push(err_3_4)
} finally {
}
} finally {
try {
} catch(err_3_5) {
exceptions.push(err_3_5)
} finally {
}
}
} finally {
try {
try {
} catch(err_3_6) {
exceptions.push(err_3_6)
} finally {
}
} catch(err_2_2) {
exceptions.push(err_2_2)
try {
} catch(err_3_7) {
exceptions.push(err_3_7)
} finally {
}
} finally {
try {
} catch(err_3_8) {
exceptions.push(err_3_8)
} finally {
}
}
}
////
return({rslt,exceptions});
}
LICENSE
- ISC