title: Throwing exceptions as strings in v8
body: <p>In our application, I am constructing an exception object as under:</p>
  
  <pre><code>auto exception = v8::Object::New(isolate_);
  exception-&gt;Set(code_name, code_value);
  </code></pre>
  
  <p>This exception is thrown using the call: <code>isolate_-&gt;ThrowException(exception);</code></p>
  
  <p>On the console and in logs, when we are printing the exception, we see an object instead of exception message. Below is the seen output:</p>
  
  <pre><code>[object Object]
  </code></pre>
  
  <p>How can we see the exception message as string instead of object?</p>