class type t =object
..end
method toString : Js.js_string Js.t Js.meth
Provides a custom string representation of the error object. This is an override of the base JavaScript
Object.toString
method, which is useful so that when logged to the browser console, an error object will
be displayed with a useful message instead of [object Object]
, the default toString
result.
The default implementation will include the error message along with the raising class and method, if available, but this can be overridden with a custom implementation either at the prototype level (for all errors) or on a particular error instance, if you want to provide a custom description that will show up in the console.
Returns:
Js.js_string Js.t
The error message. If raised from within the Ext 4 class system, the error message will also include the raising class and method names, if available.