INNER CODE UNIT · TypeScript
getCatchValue
soonfx-engine/core · src/utils/index.ts:30
export function getCatchValue(
body: BasicBody,
name?: string,
row?: string,
col?: string
): number {
let value = 0;
try {
value = body.getValue(name, row, col);
} catch (e) {
logger.error("Error getting value from BasicBody", e as Error);
value = 0;
}
return value;
}