Added error code for Applications exceptions
Removed unused declaration
Merge pull request #176 from AntonShevchuk/master

Added error code for Applications exceptions