< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xpath/internal/XPathException.java

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xpath.internal;
  23 
  24 import javax.xml.transform.TransformerException;
  25 import org.w3c.dom.Node;
  26 
  27 /**
  28  * This class implements an exception object that all
  29  * XPath classes will throw in case of an error.  This class
  30  * extends TransformerException, and may hold other exceptions. In the
  31  * case of nested exceptions, printStackTrace will dump
  32  * all the traces of the nested exceptions, not just the trace
  33  * of this object.
  34  * @xsl.usage general

  35  */
  36 public class XPathException extends TransformerException
  37 {
  38     static final long serialVersionUID = 4263549717619045963L;
  39 
  40   /** The home of the expression that caused the error.
  41    *  @serial  */
  42   Object m_styleNode = null;
  43 
  44   /**
  45    * Get the stylesheet node from where this error originated.
  46    * @return The stylesheet node from where this error originated, or null.
  47    */
  48   public Object getStylesheetNode()
  49   {
  50     return m_styleNode;
  51   }
  52 
  53   /**
  54    * Set the stylesheet node from where this error originated.


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xpath.internal;
  22 
  23 import javax.xml.transform.TransformerException;
  24 import org.w3c.dom.Node;
  25 
  26 /**
  27  * This class implements an exception object that all
  28  * XPath classes will throw in case of an error.  This class
  29  * extends TransformerException, and may hold other exceptions. In the
  30  * case of nested exceptions, printStackTrace will dump
  31  * all the traces of the nested exceptions, not just the trace
  32  * of this object.
  33  * @xsl.usage general
  34  * @LastModified: Oct 2017
  35  */
  36 public class XPathException extends TransformerException
  37 {
  38     static final long serialVersionUID = 4263549717619045963L;
  39 
  40   /** The home of the expression that caused the error.
  41    *  @serial  */
  42   Object m_styleNode = null;
  43 
  44   /**
  45    * Get the stylesheet node from where this error originated.
  46    * @return The stylesheet node from where this error originated, or null.
  47    */
  48   public Object getStylesheetNode()
  49   {
  50     return m_styleNode;
  51   }
  52 
  53   /**
  54    * Set the stylesheet node from where this error originated.


< prev index next >