/** * If an error was reported, throw the exception. * Otherwise exit normally. */ public void check() throws InaccessibleWSDLException { if(list.isEmpty()) return; throw new InaccessibleWSDLException(list); } }
/** * If an error was reported, throw the exception. * Otherwise exit normally. */ public void check() throws InaccessibleWSDLException { if(list.isEmpty()) return; throw new InaccessibleWSDLException(list); } }
/** * If an error was reported, throw the exception. * Otherwise exit normally. */ public void check() throws InaccessibleWSDLException { if(list.isEmpty()) return; throw new InaccessibleWSDLException(list); } }
private static WSDLModel tryWithMex(@NotNull RuntimeWSDLParser wsdlParser, @NotNull URL wsdlLoc, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Throwable e, Class serviceClass, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws SAXException, XMLStreamException { ArrayList<Throwable> exceptions = new ArrayList<Throwable>(); try { WSDLModel wsdlModel = wsdlParser.parseUsingMex(wsdlLoc, resolver, isClientSide, container, serviceClass, policyResolver,extensions); if(wsdlModel == null){ throw new WebServiceException(ClientMessages.FAILED_TO_PARSE(wsdlLoc.toExternalForm(), e.getMessage()), e); } return wsdlModel; } catch (URISyntaxException e1) { exceptions.add(e); exceptions.add(e1); } catch(IOException e1){ exceptions.add(e); exceptions.add(e1); } throw new InaccessibleWSDLException(exceptions); }
private static WSDLModel tryWithMex(@NotNull RuntimeWSDLParser wsdlParser, @NotNull URL wsdlLoc, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Throwable e, Class serviceClass, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws SAXException, XMLStreamException { ArrayList<Throwable> exceptions = new ArrayList<Throwable>(); try { WSDLModel wsdlModel = wsdlParser.parseUsingMex(wsdlLoc, resolver, isClientSide, container, serviceClass, policyResolver,extensions); if(wsdlModel == null){ throw new WebServiceException(ClientMessages.FAILED_TO_PARSE(wsdlLoc.toExternalForm(), e.getMessage()), e); } return wsdlModel; } catch (URISyntaxException e1) { exceptions.add(e); exceptions.add(e1); } catch(IOException e1){ exceptions.add(e); exceptions.add(e1); } throw new InaccessibleWSDLException(exceptions); }
private static WSDLModel tryWithMex(@NotNull RuntimeWSDLParser wsdlParser, @NotNull URL wsdlLoc, @NotNull EntityResolver resolver, boolean isClientSide, Container container, Throwable e, Class serviceClass, PolicyResolver policyResolver, WSDLParserExtension... extensions) throws SAXException, XMLStreamException { ArrayList<Throwable> exceptions = new ArrayList<Throwable>(); try { WSDLModel wsdlModel = wsdlParser.parseUsingMex(wsdlLoc, resolver, isClientSide, container, serviceClass, policyResolver,extensions); if(wsdlModel == null){ throw new WebServiceException(ClientMessages.FAILED_TO_PARSE(wsdlLoc.toExternalForm(), e.getMessage()), e); } return wsdlModel; } catch (URISyntaxException e1) { exceptions.add(e); exceptions.add(e1); } catch(IOException e1){ exceptions.add(e); exceptions.add(e1); } throw new InaccessibleWSDLException(exceptions); }