title: Custom module gives error in Magento2
body: <p>I created a simple custom module in Magento2. I enabled my module in app/etc/config.php, executed the command bin/magento setup:upgrade in my project root folder and cleared all the cache directories.</p>
  
  <p>But after page refresh, I'm getting the below error page:</p>
  
  <p><a href="https://i.stack.imgur.com/YL9ql.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YL9ql.jpg" alt="enter image description here"></a></p>