getException


String getException()

Returns a string representation of the error.

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

hasException


diputree documentation © 2000 dipu