This module contains support code for new-styled error handling via an nkError node kind.
ErrorKind = enum RawTypeMismatchError, ExpressionCannotBeCalled, CustomError, WrongNumberOfArguments, AmbiguousCall
proc errorSubNode(n: PNode): PNode {....raises: [], tags: [], forbids: [].}
proc errorToString(config: ConfigRef; n: PNode): string {. ...raises: [ValueError, Exception, KeyError, OSError], tags: [RootEffect, ReadDirEffect], forbids: [].}
proc newError(wrongNode: PNode; k: ErrorKind; args: varargs[PNode]): PNode {. ...raises: [], tags: [], forbids: [].}
proc newError(wrongNode: PNode; msg: string): PNode {....raises: [], tags: [], forbids: [].}