I have a stored procedure on a SQL Server 2005 database which has a statement like this:
IF @Condition = 0 BEGIN RAISERROR(\'some error message
Is it something to do with the severity level? If you up severity to 19 does it raise the exception through to your code?