Idiom: Hoist with your own petard

What does 'Hoist with your own petard' mean?

If you are hoist with your own petard, you get into trouble or caught in a trap that you had set for someone else.

See also: