I have been using TRY CATCH to capture errors and write them to the log.
One particular error I had was performing a restore via TSQL when the drive ran out of disk space. However, the error returned by the ERROR_MESSAGE() was the RESTORE failed (which it did) but what I want to really know is why ie. lack of disk space. Is it possible to retrieve this information via a TRY CATCH?