error handling data structures