/** * Creates an exception with the appropriate error message. */ public XPathException createXPathException(short type, String key, Object[] args) { try { return new XPathException(type, formatMessage(key, args)); } catch (Exception e) { return new XPathException(type, key); } }
/** * Creates an exception with the appropriate error message. */ public XPathException createXPathException(short type, String key, Object[] args) { try { return new XPathException(type, formatMessage(key, args)); } catch (Exception e) { return new XPathException(type, key); } }
/** * Creates an exception with the appropriate error message. */ public XPathException createXPathException(short type, String key, Object[] args) { try { return new XPathException(type, formatMessage(key, args)); } catch (Exception e) { return new XPathException(type, key); } }
/** * Creates an exception with the appropriate error message. */ public DOMException createDOMException(short type, String key, Object[] args) { try { return new DOMException (type, getCurrentDocument().formatMessage(key, args)); } catch (Exception e) { return new DOMException(type, key); } }
/** * Creates an SVGException with the appropriate error message. */ public SVGException createSVGException(short type, String key, Object [] args) { try { return new SVGOMException (type, getCurrentDocument().formatMessage(key, args)); } catch (Exception e) { return new SVGOMException(type, key); } }
/** * Creates an exception with the appropriate error message. */ public DOMException createDOMException(short type, String key, Object[] args) { try { return new DOMException (type, getCurrentDocument().formatMessage(key, args)); } catch (Exception e) { return new DOMException(type, key); } }
/** * Creates an SVGException with the appropriate error message. */ public SVGException createSVGException(short type, String key, Object [] args) { try { return new SVGOMException (type, getCurrentDocument().formatMessage(key, args)); } catch (Exception e) { return new SVGOMException(type, key); } }
/** * Creates an SVGException with the appropriate error message. */ public SVGException createSVGException(short type, String key, Object [] args) { try { return new SVGOMException (type, getCurrentDocument().formatMessage(key, args)); } catch (Exception e) { return new SVGOMException(type, key); } }
/** * Creates an exception with the appropriate error message. */ public DOMException createDOMException(short type, String key, Object[] args) { try { return new DOMException (type, getCurrentDocument().formatMessage(key, args)); } catch (Exception e) { return new DOMException(type, key); } }
/** * Creates an EventException. Overrides this method if you need to * create your own RangeException subclass. * @param code the exception code * @param key the resource key * @param args arguments to use when formatting the message */ protected EventException createEventException(short code, String key, Object[] args) { try { AbstractDocument doc = (AbstractDocument) node.getOwnerDocument(); return new EventException(code, doc.formatMessage(key, args)); } catch (Exception e) { return new EventException(code, key); } }
/** * Creates an EventException. Overrides this method if you need to * create your own RangeException subclass. * @param code the exception code * @param key the resource key * @param args arguments to use when formatting the message */ protected EventException createEventException(short code, String key, Object[] args) { try { AbstractDocument doc = (AbstractDocument) node.getOwnerDocument(); return new EventException(code, doc.formatMessage(key, args)); } catch (Exception e) { return new EventException(code, key); } }
/** * Creates an EventException. Overrides this method if you need to * create your own RangeException subclass. * @param code the exception code * @param key the resource key * @param args arguments to use when formatting the message */ protected EventException createEventException(short code, String key, Object[] args) { try { AbstractDocument doc = (AbstractDocument) node.getOwnerDocument(); return new EventException(code, doc.formatMessage(key, args)); } catch (Exception e) { return new EventException(code, key); } }
/** * Creates a DOMError object with the given parameters. */ protected DOMError createDOMError(String type, short severity, String key, Object[] args, Node related, Exception e) { try { return new DocumentError(type, severity, getCurrentDocument().formatMessage(key, args), related, e); } catch (Exception ex) { return new DocumentError(type, severity, key, related, e); } }
/** * Creates a DOMError object with the given parameters. */ protected DOMError createDOMError(String type, short severity, String key, Object[] args, Node related, Exception e) { try { return new DocumentError(type, severity, getCurrentDocument().formatMessage(key, args), related, e); } catch (Exception ex) { return new DocumentError(type, severity, key, related, e); } }
/** * Creates a DOMError object with the given parameters. */ protected DOMError createDOMError(String type, short severity, String key, Object[] args, Node related, Exception e) { try { return new DocumentError(type, severity, getCurrentDocument().formatMessage(key, args), related, e); } catch (Exception ex) { return new DocumentError(type, severity, key, related, e); } }