Remove the now unused expected_error_class method in raise_error

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Use === for exception checking on raise_error.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>