Package com.sun.istack

Examples of com.sun.istack.SAXException2


        }

        try {
            out.attribute(prefix,local,value);
        } catch (IOException e) {
            throw new SAXException2(e);
        } catch (XMLStreamException e) {
            throw new SAXException2(e);
        }
    }
View Full Code Here


            } catch (SAXException e) {// from callable.call
                throw e;
            } catch (RuntimeException e) {// from callable.call
                throw e;
            } catch (Exception e) {// from callable.call
                throw new SAXException2(e);
            }
            if(t!=null) {
                assign(bean,t,context);
            } else {
                // try again later
                final LocatorEx loc = new LocatorEx.Snapshot(context.getLocator());
                context.addPatcher(new Patcher() {
                    public void run() throws SAXException {
                        try {
                            TargetT t = (TargetT)callable.call();
                            if(t==null) {
                                context.errorUnresolvedIDREF(bean,idref,loc);
                            } else {
                                assign(bean,t,context);
                            }
                        } catch (AccessorException e) {
                            context.handleError(e);
                        } catch (SAXException e) {// from callable.call
                            throw e;
                        } catch (RuntimeException e) {// from callable.call
                            throw e;
                        } catch (Exception e) {// from callable.call
                            throw new SAXException2(e);
                        }
                    }
                });
            }
        }
View Full Code Here

/*     */       } catch (SAXException e) {
/* 316 */         throw e;
/*     */       } catch (RuntimeException e) {
/* 318 */         throw e;
/*     */       } catch (Exception e) {
/* 320 */         throw new SAXException2(e);
/*     */       }
/* 322 */       if (t != null) {
/* 323 */         assign(bean, t, context);
/*     */       }
/*     */       else {
/* 326 */         LocatorEx loc = new LocatorEx.Snapshot(context.getLocator());
/* 327 */         context.addPatcher(new Patcher(callable, context, bean, idref, loc) {
/*     */           public void run() throws SAXException {
/*     */             try {
/* 330 */               Object t = this.val$callable.call();
/* 331 */               if (t == null)
/* 332 */                 this.val$context.errorUnresolvedIDREF(this.val$bean, this.val$idref, this.val$loc);
/*     */               else
/* 334 */                 TransducedAccessor.IDREFTransducedAccessorImpl.this.assign(this.val$bean, t, this.val$context);
/*     */             }
/*     */             catch (AccessorException e) {
/* 337 */               this.val$context.handleError(e);
/*     */             } catch (SAXException e) {
/* 339 */               throw e;
/*     */             } catch (RuntimeException e) {
/* 341 */               throw e;
/*     */             } catch (Exception e) {
/* 343 */               throw new SAXException2(e);
/*     */             }
/*     */           } } );
/*     */       }
/*     */     }
View Full Code Here

/*      */   {
/*      */     ValidationEventHandler handler;
/*      */     try {
/*  233 */       handler = this.marshaller.getEventHandler();
/*      */     } catch (JAXBException e) {
/*  235 */       throw new SAXException2(e);
/*      */     }
/*      */
/*  238 */     if (!handler.handleEvent(ve)) {
/*  239 */       if ((ve.getLinkedException() instanceof Exception)) {
/*  240 */         throw new SAXException2((Exception)ve.getLinkedException());
/*      */       }
/*  242 */       throw new SAXException2(ve.getMessage());
/*      */     }
/*      */   }
View Full Code Here

/*      */
/*      */     try
/*      */     {
/*  429 */       this.out.attribute(prefix, local, value);
/*      */     } catch (IOException e) {
/*  431 */       throw new SAXException2(e);
/*      */     } catch (XMLStreamException e) {
/*  433 */       throw new SAXException2(e);
/*      */     }
/*      */   }
View Full Code Here

/*     */             try {
/* 391 */               t = callable != null ? callable.call() : null;
/*     */             } catch (SAXException e) {
/* 393 */               throw e;
/*     */             } catch (Exception e) {
/* 395 */               throw new SAXException2(e);
/*     */             }
/*     */
/* 398 */             if (t == null) {
/* 399 */               this.context.errorUnresolvedIDREF(this.bean, id, this.location);
/*     */             } else {
View Full Code Here

/* 130 */         this.serializer.attribute(atts.getURI(i), atts.getLocalName(i), atts.getValue(i));
/*     */       }
/* 132 */       this.prefixMap.clear();
/* 133 */       this.serializer.endAttributes();
/*     */     } catch (IOException e) {
/* 135 */       throw new SAXException2(e);
/*     */     } catch (XMLStreamException e) {
/* 137 */       throw new SAXException2(e);
/*     */     }
/*     */   }
View Full Code Here

/*     */   public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
/*     */     try {
/* 149 */       flushText();
/* 150 */       this.serializer.endElement();
/*     */     } catch (IOException e) {
/* 152 */       throw new SAXException2(e);
/*     */     } catch (XMLStreamException e) {
/* 154 */       throw new SAXException2(e);
/*     */     }
/*     */   }
View Full Code Here

        ValidationEventHandler handler;

        try {
            handler = marshaller.getEventHandler();
        } catch( JAXBException e ) {
            throw new SAXException2(e);
        }

        if(!handler.handleEvent(ve)) {
            if(ve.getLinkedException() instanceof Exception)
                throw new SAXException2((Exception)ve.getLinkedException());
            else
                throw new SAXException2(ve.getMessage());
        }
    }
View Full Code Here

        }

        try {
            out.attribute(prefix,local,value);
        } catch (IOException e) {
            throw new SAXException2(e);
        } catch (XMLStreamException e) {
            throw new SAXException2(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.istack.SAXException2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.