expose a way to get data from error classes