@@ -1708,7 +1708,7 @@ class Schema {
17081708 try {
17091709 fieldVariants = this . getColumnNameVariants ( baseColumnName ) ;
17101710 }
1711- catch ( ex ) {
1711+ catch {
17121712 throw new Error ( `Invalid column title: ${ baseColumnName } ` ) ;
17131713 }
17141714 const columnName = fieldVariants . columnName ;
@@ -3326,7 +3326,7 @@ class SqlServerFunctions {
33263326 functionString = functionString . replace ( args [ 0 ] , replacement ) ;
33273327 args = this . parseFunctionArgs ( func , functionString ) ;
33283328 }
3329- catch ( ex ) {
3329+ catch {
33303330 throw new Error ( `Internal Error. Function is missing. ${ func } ` ) ;
33313331 }
33323332 }
@@ -7272,7 +7272,7 @@ class TableData { // skipcq: JS-0128
72727272 const lock = LockService . getScriptLock ( ) ;
72737273 try {
72747274 lock . waitLock ( 100000 ) ; // wait 100 seconds for others' use of the code section and lock to stop and then proceed
7275- } catch ( e ) {
7275+ } catch {
72767276 throw new Error ( "Cache lock failed" ) ;
72777277 }
72787278
@@ -7337,7 +7337,7 @@ class TableData { // skipcq: JS-0128
73377337 Logger . log ( `Named Range Data Loaded: ${ tableNamedRange } . Items=${ output . length } ` ) ;
73387338 }
73397339 }
7340- catch ( ex ) {
7340+ catch {
73417341 throw new Error ( `Error reading table data: ${ tableNamedRange } ` ) ;
73427342 }
73437343
@@ -7373,7 +7373,7 @@ class TableData { // skipcq: JS-0128
73737373 const lock = LockService . getScriptLock ( ) ;
73747374 try {
73757375 lock . waitLock ( 100000 ) ; // wait 100 seconds for others' use of the code section and lock to stop and then proceed
7376- } catch ( e ) {
7376+ } catch {
73777377 throw new Error ( "Cache lock failed" ) ;
73787378 }
73797379 cache . putAll ( putObject , cacheSeconds ) ;
@@ -7521,7 +7521,7 @@ class ScriptSettings { // skipcq: JS-0128
75217521 try {
75227522 this . scriptProperties . setProperty ( propertyKey , jsonData ) ;
75237523 }
7524- catch ( ex ) {
7524+ catch {
75257525 throw new Error ( "Cache Limit Exceeded. Long cache times have limited storage available. Only cache small tables for long periods." ) ;
75267526 }
75277527 }
@@ -7615,7 +7615,7 @@ class ScriptSettings { // skipcq: JS-0128
76157615 try {
76167616 propertyValue = JSON . parse ( allProperties [ key ] ) ;
76177617 }
7618- catch ( e ) {
7618+ catch {
76197619 // A property that is NOT cached by CACHEFINANCE
76207620 continue ;
76217621 }
0 commit comments