hasException


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.

Code snippet

// generate an error
diputree.bind ("","","");

if ( diputree.hasException() ) {
   var error = dipturee.getException();
   alert (error);
}

Example

exception example

See also

getException

 


diputree documentation © 2000 dipu