For example, say I'm parsing something and I hit an unexpected character, so I do something like: return error.invalidChar; But I also want the error to carry information about _which_ char was invalid. Is there a way to do that?