Task: Get Exception Description and Stack Trace as a String
Task: Get Exception Description and Stack Trace as a String: a task in Terminal-Lego-15k (Harbor dataset). Create a Python function that converts a caught exception (including its description and complete stack trace) into a string for external use (logging, sending to external services, etc.).
Part of PrimeIntellect/Terminal-Lego-15k.