title: Constructor abort constructing
body: <p>I would like to have the constructor abort object construction whenever it encounters certain error code (e.g. if the following is encountered):</p>
  
  <pre><code>CudaObj::CudaObj(InsertionSim *theSim)
  {
      // Setup
      if(cublasInit() == CUBLAS_STATUS_NOT_INITIALIZED) {
          printf("CUBLAS init error.\n");
          return -1;  // abort here rather than return a value
      }
  
          ...
  }
  </code></pre>
  
  <p>What would be the easiest way for this to be accomplished? Would it be exception handling?</p>