Msg 18054, Level 16, State 1, Line 1
Error %d, severity %d, state %d was raised, but no message with that error number was found in sys.messages. If error is larger than 50000, make sure the user-defined message is added using sp_addmessage.
This error message appears when you try raise an error with an internal error_id, but this error_id can not be found in sys.messages.
The T-SQL statement can be parsed, but causes the error at runtime.
Error of the Severity level 11 are generated by the user and can be fixed by the SQL Server user. The statement cannot be run this way. The error_id must exist in sys.messages
All versions of SQL Server.
RAISERROR (13000, 16, 1)
In the above example we try to raise error 13000. Because this error_id does not exist in sys.messages, the error is raised.