move NoMenuError to error.rb
Merge pull request #3343 from timoschilling/no_menu_error

move NoMenuError to error.rb
refactor DependencyError