Added attribute readers to LexingError.

Useful for printing custom error messages.