Modifies the stack trace of an error by removing a specified number of stack frames.
The error whose stack trace should be modified.
The number of stack frames to remove.
Modifies the stack trace of an error by removing a specified number of stack frames.