title: When should you create your own exception type?
body: <p>I am working on a project where we are restructuring old C code into new C++ where for error handling we are using exceptions.</p>
  
  <p>We are creating different exception types for different modules.</p>
  
  <p>I don't see it is worth but I don't have any valid argument to prove my point. So if we would have written the standard library, you would get to see vector_exception, list_exception and so on.</p>
  
  <p>While thinking about it I stumbled upon this question:</p>
  
  <blockquote>
    <p>When should you create your own exception type and when should you stick to the exceptions already created in std library?</p>
  </blockquote>
  
  <p>Also, what could be the problems that we may face in the near future if we go by the above approach?</p>