Pass exception correctly