title: C++ Using an enum to error-handling
body: <p>I wanted to use an Enum as an error handling, but I don't know if that's posible.</p>
  
  <p>For example, if I have this enum:</p>
  
  <pre><code>enum ErrorNum : char{
      ID_ERROR
  };
  </code></pre>
  
  <p>I want to check this ID_ERROR and, depending on that error, show a description or another. So, I don't really know how many errors would be in the app.</p>
  
  <p>I'll show an example. If the algorithm can not place a bed in a room, it has to return an error with ID_ERROR 100 and X description. </p>
  
  <p>But I don't know how many errors will be at the app, so I don't know if this enum should be dynamic.</p>
  
  <p>I would post some code but I don't really know how to handle it.</p>
  
  <p>Is this possible?</p>