Module: x2node-common

Common utilities module.

Classes

X2DataError
X2SyntaxError
X2UsageError

Methods


<static> error(msg [, err])

Log application error.
Parameters:
Name Type Argument Description
msg string Error message.
err external:Error <optional>
Optional error object.

<static> getDebugLogger(section)

Get debug logger.
Parameters:
Name Type Description
section string Section being debugged.
Returns:
Debug logger function that takes one argument, which is the debug message.
Type
function