javax.xml.stream

Class XMLStreamException

Implemented Interfaces:
Serializable

public class XMLStreamException
extends Exception

See Also:
Serialized Form

Field Summary

protected Location
location
protected Throwable
nested

Constructor Summary

XMLStreamException()
XMLStreamException(String msg)
XMLStreamException(String msg, Throwable th)
XMLStreamException(String msg, Location location)
XMLStreamException(String msg, Location location, Throwable th)
XMLStreamException(Throwable th)

Method Summary

Location
getLocation()
Throwable
getNestedException()

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

location

protected Location location

nested

protected Throwable nested

Constructor Details

XMLStreamException

public XMLStreamException()
Usages and Demos :

View More Examples of XMLStreamException()
   1:     else
   2:       throw new XMLStreamException();
   3:   }
   4: 
   5:   public void add(XMLEventReader reader) throws XMLStreamException

View Full Code Here
   1:         if (prefix == null) {
   2:             throw new XMLStreamException();
   3:         }
   4:         ...
   5:         if (prefix == null) {
   6:             throw new XMLStreamException();
   7:         }
   8:         
   9:         writeAttribute(prefix, namespaceURI, localName, value);

View Full Code Here
   1:                 if (!hasNext())
   2:                     throw new XMLStreamException();
   3: 
   4:         ...
   5:                 else if (e == START_ELEMENT)
   6:                     throw new XMLStreamException();
   7:                 else if (e != COMMENT && e != PROCESSING_INSTRUCTION)
   8:         ...
   9:                 if (!isWhiteSpace())
  10:                     throw new XMLStreamException();

View Full Code Here
   1:       {
   2:         XMLStreamException e2 = new XMLStreamException();
   3:         e2.initCause(e);
   4:         throw e2;
   5:       }

View Full Code Here

XMLStreamException

public XMLStreamException(String msg)
Usages and Demos :

View More Examples of XMLStreamException(String msg)
   1:         else {
   2:             throw new XMLStreamException( "Parent " + parent.getClass().getName() + " does not accept reference", reader.getLocation() );
   3:         }
   4:     }

View Full Code Here
   1:         } else {
   2:             throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.noElement"));
   3:         }
   4:         ...
   5:         if (!hasEvent)
   6:              throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.noElement"));
   7:         _currentEvent = events[currentIndex];
   8:         return _currentEvent;
   9:     }

View Full Code Here
   1:     public void add(XMLEventReader eventReader) throws XMLStreamException {
   2:         if(eventReader == null) throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.nullEventReader"));
   3:         while(eventReader.hasNext()){
   4:         ...
   5:             default:
   6:                 throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.eventTypeNotSupported", new Object[]{Util.getEventTypeString(type)}));
   7:         };
   8:         
   9:     }

View Full Code Here
   1:     if (type != getEventType())
   2:       throw new XMLStreamException("expected " + constantToString(type) + ", "+
   3:                                    "found " + constantToString(getEventType()) +
   4:                                    " at " + getLocation());

View Full Code Here
   1:         } catch (IOException e) {
   2:             throw new XMLStreamException(e);
   3:         }
   4:         ...
   5:         catch (IOException e) {
   6:             throw new XMLStreamException(e);
   7:         }
   8:         ...
   9:         catch (IOException e) {
  10:             throw new XMLStreamException(e);
  11:         }

View Full Code Here

XMLStreamException

public XMLStreamException(String msg,
                          Throwable th)

XMLStreamException

public XMLStreamException(String msg,
                          Location location)

XMLStreamException

public XMLStreamException(String msg,
                          Location location,
                          Throwable th)

XMLStreamException

public XMLStreamException(Throwable th)
Usages and Demos :

View More Examples of XMLStreamException(Throwable th)
   1:         else {
   2:             throw new XMLStreamException( "Parent " + parent.getClass().getName() + " does not accept reference", reader.getLocation() );
   3:         }
   4:     }

View Full Code Here
   1:         } else {
   2:             throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.noElement"));
   3:         }
   4:         ...
   5:         if (!hasEvent)
   6:              throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.noElement"));
   7:         _currentEvent = events[currentIndex];
   8:         return _currentEvent;
   9:     }

View Full Code Here
   1:     public void add(XMLEventReader eventReader) throws XMLStreamException {
   2:         if(eventReader == null) throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.nullEventReader"));
   3:         while(eventReader.hasNext()){
   4:         ...
   5:             default:
   6:                 throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.eventTypeNotSupported", new Object[]{Util.getEventTypeString(type)}));
   7:         };
   8:         
   9:     }

View Full Code Here
   1:     if (type != getEventType())
   2:       throw new XMLStreamException("expected " + constantToString(type) + ", "+
   3:                                    "found " + constantToString(getEventType()) +
   4:                                    " at " + getLocation());

View Full Code Here
   1:         } catch (IOException e) {
   2:             throw new XMLStreamException(e);
   3:         }
   4:         ...
   5:         catch (IOException e) {
   6:             throw new XMLStreamException(e);
   7:         }
   8:         ...
   9:         catch (IOException e) {
  10:             throw new XMLStreamException(e);
  11:         }

View Full Code Here

Method Details

getLocation

public Location getLocation()
Usages and Demos :

View More Examples of getLocation()
   1: import javax.xml.stream.Location;
   2: import javax.xml.stream.XMLStreamException;
   3: 
   4:         ...
   5:         }
   6:         catch (XMLStreamException ex) {
   7:             SAXParseException saxException = new SAXParseException(ex.getMessage(), null, null,
   8:         ...
   9:                     ex.getLocation().getLineNumber(), ex.getLocation().getColumnNumber(), ex);
  10:             if (getErrorHandler() != null) {

View Full Code Here

getNestedException

public Throwable getNestedException()