NotImplementedException(message: String, self: Object);
message. Message passed to exception. This is an optional parameter, by default its value is not defined.
self. Exception source. This is an optional parameter, by default its value is not defined.
The NotImplementedException method is the exception thrown if the class method is not implemented.
This method returns a String value in the following format: NotImplementedException. Source: [Exception source] Message: [Message to be shown].
To execute the example, add a link to PP.js scenario file to HTML page. Determine a function that compares two objects, but leave it without implementation:
PP.compareObjects = function (a, b) { PP.NotImplementedException(this); };
After executing the example on attempt to invoke the compareObject function, the browser console always shows the following message: NotImplementedException. Source: [object Object]».
See also: