Idioms for error handling with contextual information?

What about this pattern?