Check out example codes for "sql raiserror". It will help you in understanding the concepts better.

Code Example 1

-- Syntax for SQL Server and Azure SQL Database  
  
RAISERROR ( { msg_id | msg_str | @local_variable }  
    { ,severity ,state }  
    [ ,argument [ ,...n ] ] )  
    [ WITH option [ ,...n ] ]

Learn ReactJs, React Native from akashmittal.com