trace functions that throw exceptions