content: /*
   *  This file is part of AndroidIDE.
   *
   *  AndroidIDE is free software: you can redistribute it and/or modify
   *  it under the terms of the GNU General Public License as published by
   *  the Free Software Foundation, either version 3 of the License, or
   *  (at your option) any later version.
   *
   *  AndroidIDE is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   *  GNU General Public License for more details.
   *
   *  You should have received a copy of the GNU General Public License
   *   along with AndroidIDE.  If not, see <https://www.gnu.org/licenses/>.
   */
  
  /*
   * reserved comment block
   * DO NOT REMOVE OR ALTER!
   */
  /*
   * Copyright 2003,2004 The Apache Software Foundation.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package jaxp.sun.org.apache.xerces.internal.xs;
  
  /**
   * The XML Schema API operations only raise exceptions in "exceptional"
   * circumstances, i.e., when an operation is impossible to perform (either
   * for logical reasons, because data is lost, or because the implementation
   * has become unstable).
   * <p>Implementations should raise other exceptions under other circumstances.
   * <p>Some languages and object systems do not support the concept of
   * exceptions. For such systems, error conditions may be indicated using
   * native error reporting mechanisms. For some bindings, for example,
   * methods may return error codes similar to those listed in the
   * corresponding method descriptions.
   */
  public class XSException extends RuntimeException {
  
      /** Serialization version. */
      static final long serialVersionUID = 3111893084677917742L;
  
      public XSException(short code, String message) {
         super(message);
         this.code = code;
      }
      public short   code;
      // ExceptionCode
      /**
       * If the implementation does not support the requested type of object or
       * operation.
       */
      public static final short NOT_SUPPORTED_ERR         = 1;
      /**
       * If index or size is negative, or greater than the allowed value
       */
      public static final short INDEX_SIZE_ERR            = 2;
  
  }
  