Create a new error with original error as the cause if it has no stack frames
Create a new error with original error as the cause if it has no stack frames