Add support for raising exceptions