Get error message for exception
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.
error
| throw
| try, catch