I would use Try-Catch.
Set a varchar variable to the string you want, then just raiserror(@Variable, 16,1)
Then, in the Catch block:
select @Variable=Error_Message()
raiserror(@Variable, 16,1)
Something like:
Begin Try
--code to check certain conditions
select @Variable = 'Whatever text you...