const char *what() const throw()

www.kxcad.net Home > CAE Software Index > MATLAB Index >


Your Ad Here

Return error message contained in this exception

C++ Syntax

#include "mclcppclass.h"
try
{
    ...
}
catch (const std::exception& e)
{
    std::cout << e.what() << std::endl; // Displays error
                                        // message to 
                                        // standard out.
}

Arguments

None

Return Value

A pointer to a NULL-terminated character buffer containing the error message.

Description

Use this method to retrieve the error message from an mwException.

  


© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments

Your Ad Here