Method MasterObject()->describe_error()
- Method describe_error
string
describe_error(mixed
err
)- Description
Return the error message from an error object or array (typically caught by a
catch
). The type of the error is checked, hence err is declared asmixed
and notobject|array
.If an error message couldn't be obtained, a fallback message describing the failure is returned. No errors due to incorrectness in err are thrown.
- See also