Java Code Examples for com.sun.org.apache.xerces.internal.xni.XNIException#getException()
The following examples show how to use
com.sun.org.apache.xerces.internal.xni.XNIException#getException() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JAXPValidatorComponent.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }
Example 2
Source File: JAXPValidatorComponent.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }
Example 3
Source File: SchemaContentHandler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 4
Source File: SchemaContentHandler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 5
Source File: JAXPValidatorComponent.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }
Example 6
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Reconstructs {@link SAXException} from XNIException. */ public static SAXException toSAXException(XNIException e) { if(e instanceof XMLParseException) return toSAXParseException((XMLParseException)e); if( e.getException() instanceof SAXException ) return (SAXException)e.getException(); return new SAXException(e.getMessage(),e.getException()); }
Example 7
Source File: JAXPValidatorComponent.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }
Example 8
Source File: Util.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Reconstructs {@link SAXException} from XNIException. */ public static SAXException toSAXException(XNIException e) { if(e instanceof XMLParseException) return toSAXParseException((XMLParseException)e); if( e.getException() instanceof SAXException ) return (SAXException)e.getException(); return new SAXException(e.getMessage(),e.getException()); }
Example 9
Source File: Util.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Reconstructs {@link SAXException} from XNIException. */ public static SAXException toSAXException(XNIException e) { if(e instanceof XMLParseException) return toSAXParseException((XMLParseException)e); if( e.getException() instanceof SAXException ) return (SAXException)e.getException(); return new SAXException(e.getMessage(),e.getException()); }
Example 10
Source File: SchemaContentHandler.java From JDKSourceCode1.8 with MIT License | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 11
Source File: Util.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Reconstructs {@link SAXException} from XNIException. */ public static SAXException toSAXException(XNIException e) { if(e instanceof XMLParseException) return toSAXParseException((XMLParseException)e); if( e.getException() instanceof SAXException ) return (SAXException)e.getException(); return new SAXException(e.getMessage(),e.getException()); }
Example 12
Source File: SchemaContentHandler.java From hottub with GNU General Public License v2.0 | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 13
Source File: SchemaContentHandler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 14
Source File: JAXPValidatorComponent.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }
Example 15
Source File: Util.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Reconstructs {@link SAXException} from XNIException. */ public static SAXException toSAXException(XNIException e) { if(e instanceof XMLParseException) return toSAXParseException((XMLParseException)e); if( e.getException() instanceof SAXException ) return (SAXException)e.getException(); return new SAXException(e.getMessage(),e.getException()); }
Example 16
Source File: Util.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Reconstructs {@link SAXException} from XNIException. */ public static SAXException toSAXException(XNIException e) { if(e instanceof XMLParseException) return toSAXParseException((XMLParseException)e); if( e.getException() instanceof SAXException ) return (SAXException)e.getException(); return new SAXException(e.getMessage(),e.getException()); }
Example 17
Source File: SchemaContentHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 18
Source File: JAXPValidatorComponent.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }
Example 19
Source File: SchemaContentHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
static void convertToSAXException(XNIException e) throws SAXException { Exception ex = e.getException(); if (ex == null) { throw new SAXException(e.getMessage()); } if (ex instanceof SAXException) { throw (SAXException) ex; } throw new SAXException(ex); }
Example 20
Source File: JAXPValidatorComponent.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Converts the {@link XNIException} received from a downstream * component to a {@link SAXException}. */ private SAXException toSAXException( XNIException xe ) { Exception e = xe.getException(); if( e==null ) e = xe; if( e instanceof SAXException ) return (SAXException)e; return new SAXException(e); }