Added error code for Applications exceptions