struct Error {
XAtLine47,
XAtLine88,
YAtLine13,
}
This way you have error AND error place as contextualization. struct Error {
XAtLine47,
XAtLine88,
YAtLine13,
}
This way you have error AND error place as contextualization.Taken to the extreme, you have a unique context for every possible error source inside your library, which means you could directly search for the name to find the line number.
This does make me wonder how I could add line / file information to an error automatically though.