Fixed `raise` syntax error

Not sure if it's really important to use the Exception class, so just pulled that for the default (RuntimeError).