If you try to fail but you succeed what would that be called?

Unfortunate. Ironic.