Try and Catch Int range limit : <p>I want to catch the error if the value exceeds the maximum int range in c++.</p>

<pre><code>try
{
    int num = 123123123123123123123312;
    cout &lt;&lt; num;
}
catch(.....)
{

}
</code></pre>
