public String getExceptionType()
    {
        String exceptionType = null;
        Throwable rootCause = this;
        
        do{
            Throwable temp = ((ServletException)rootCause).getRootCause();
            if(temp != null) {
                rootCause = temp;
            }
            else{
                break;
            }
        }while (rootCause instanceof ServletException);

        // rootCause must be non-null (it started as "this" and was then NEVER set to null by the loop above
        exceptionType = rootCause.getClass().getName();

        return exceptionType;
    }
public String getExceptionType ( ) { String exceptionType = null ; Throwable rootCause = this ; do { Throwable temp = ( ( ServletException ) rootCause ) . getRootCause ( ) ; if ( temp != null ) { rootCause = temp ; } else { break ; } } while ( rootCause instanceof ServletException ) ; exceptionType = rootCause . getClass ( ) . getName ( ) ; return exceptionType ; }
Returns the fully-qualified class name of the exception.