Creates a new BeancountParseError with location context
Error options
Optionalcause?: ErrorOriginal error that caused this error
Source location where error occurred
Error message
OptionalnodeType?: stringType of node being parsed when error occurred
Lines of source code where error occurred
ReadonlylocationOptional ReadonlynodeReadonlyoriginalReadonlysourceFormat the error with context lines and indicators
Number of lines to show before error (default: 2)
Number of lines to show after error (default: 2)
Formatted error message with context
Override toString to provide formatted output
Formatted error message with context
Custom error class for beancount parsing errors with location context