/** * INTERNAL * Return the collection of internal Exceptions. * Intialize if there are no exceptions */ public Collection getInternalExceptions() { if (internalExceptions == null) { setInternalExceptions(new Vector()); } return internalExceptions; }
/** * INTERNAL * Return the collection of internal Exceptions. * Intialize if there are no exceptions */ public Collection getInternalExceptions() { if (internalExceptions == null) { setInternalExceptions(new Vector()); } return internalExceptions; }
/** * INTERNAL * Return the collection of internal Exceptions. * Intialize if there are no exceptions */ public Collection getInternalExceptions() { if (internalExceptions == null) { setInternalExceptions(new Vector()); } return internalExceptions; }
/** * INTERNAL * Generate an exception which encapsulates all the exceptions generated * by this parser. Special case where the first exception is an * JPQLException. */ protected JPQLException generateException() { //Handle exceptions we expect (such as expressionSotSupported) Exception firstException = (Exception)getErrors().get(0); if (firstException instanceof JPQLException) { return (JPQLException)firstException; } //Handle general exceptions, such as NPE JPQLException exception = JPQLException.generalParsingException(getQueryInfo()); exception.setInternalExceptions(getErrors()); return exception; }
/** * INTERNAL * Generate an exception which encapsulates all the exceptions generated * by this parser. Special case where the first exception is an * JPQLException. */ protected JPQLException generateException() { //Handle exceptions we expect (such as expressionSotSupported) Exception firstException = (Exception)getErrors().get(0); if (firstException instanceof JPQLException) { return (JPQLException)firstException; } //Handle general exceptions, such as NPE JPQLException exception = JPQLException.generalParsingException(getQueryInfo()); exception.setInternalExceptions(getErrors()); return exception; }
/** * INTERNAL * Generate an exception which encapsulates all the exceptions generated * by this parser. Special case where the first exception is an * JPQLException. */ protected JPQLException generateException() { //Handle exceptions we expect (such as expressionSotSupported) Exception firstException = (Exception)getErrors().get(0); if (firstException instanceof JPQLException) { return (JPQLException)firstException; } //Handle general exceptions, such as NPE JPQLException exception = JPQLException.generalParsingException(getQueryInfo()); exception.setInternalExceptions(getErrors()); return exception; }