Main Content
getReport
Get error message for exception
Syntax
Description
gets the error message for an exception and returns it as formatted text,
msgText
= getReport(exception
)msgText
. The message is the value of the
message
property of the MException
object,
exception
. It is the same text that MATLAB® displays when it throws the exception.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2007b
See Also
try, catch
| error
| throw