Deprecating raiseWarning in favour of raiseError