We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
the invalid argument exception constructs the exception object (let's call it e) with what_arg as an explanatory string (this is it shows what went wrong) .This argument can be accessed by deault through the method what(). In other words we have the exception e and the method what().when we call e.what(); we get the message that shows what is wrong.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cpp exception handling
You are viewing a single comment's thread. Return to all comments →
the invalid argument exception constructs the exception object (let's call it e) with what_arg as an explanatory string (this is it shows what went wrong) .This argument can be accessed by deault through the method what(). In other words we have the exception e and the method what().when we call e.what(); we get the message that shows what is wrong.