equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * reserved comment block |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT REMOVE OR ALTER! |
3 * @LastModified: Oct 2017 |
4 */ |
4 */ |
5 /* |
5 /* |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
8 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
20 */ |
20 */ |
21 |
21 |
22 package com.sun.org.apache.xpath.internal; |
22 package com.sun.org.apache.xpath.internal; |
23 |
23 |
24 import javax.xml.transform.TransformerException; |
24 import javax.xml.transform.TransformerException; |
25 |
|
26 import org.w3c.dom.Node; |
25 import org.w3c.dom.Node; |
27 |
26 |
28 /** |
27 /** |
29 * This class implements an exception object that all |
28 * This class implements an exception object that all |
30 * XPath classes will throw in case of an error. This class |
29 * XPath classes will throw in case of an error. This class |
266 catch (Exception e){} |
265 catch (Exception e){} |
267 |
266 |
268 |
267 |
269 boolean isJdk14OrHigher = false; |
268 boolean isJdk14OrHigher = false; |
270 try { |
269 try { |
271 Throwable.class.getMethod("getCause", (Class[]) null); |
270 Throwable.class.getMethod("getCause", (Class<?>[]) null); |
272 isJdk14OrHigher = true; |
271 isJdk14OrHigher = true; |
273 } catch (NoSuchMethodException nsme) { |
272 } catch (NoSuchMethodException nsme) { |
274 // do nothing |
273 // do nothing |
275 } |
274 } |
276 |
275 |