On Error lets us capture only error messages what is defined by the User. Is there a way to capture Errors like shown below in Variables? These appears only in the Log.

W1074: Error Occured while replicating process: Thread creation error: Not enough storage is available to process this command