boolean hasException()
Checks if there was an exception.
A call to getException() clears the exception state of diputree, so a subsequent call to hasException() will always return false.
// generate an error
diputree.bind ("","","");
if ( diputree.hasException() ) {
var error = dipturee.getException();
alert (error);
}