How do I throw an Exception with a given backtrace?

Couldn’t you just create your own exception type to wrap the actually thrown expression and your fake backtrace (also define display_backtrace etc for proper printing and so on)?