Examples of XSException


Examples of org.apache.xerces.xs.XSException

     */
    public byte item(int index)
        throws XSException {
       
        if(index < 0 || index > data.length - 1) {
            throw new XSException(XSException.INDEX_SIZE_ERR, null);
        }
        return data[index];
    }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

        String msg =
          DOMMessageFormatter.formatMessage(
            DOMMessageFormatter.DOM_DOMAIN,
            "FEATURE_NOT_SUPPORTED",
            new Object[] { versions.item(i) });
        throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
        }
      }
      return loader;
    }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

        return false;
    }
   
    public short item(int index) throws XSException {
        if (index < 0 || index >= fLength)
            throw new XSException(XSException.INDEX_SIZE_ERR, null);
        return fArray[index];
    }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

        String msg =
          DOMMessageFormatter.formatMessage(
            DOMMessageFormatter.DOM_DOMAIN,
            "FEATURE_NOT_SUPPORTED",
            new Object[] { versions.item(i) });
        throw new XSException(XSException.NOT_SUPPORTED_ERR, msg);
        }
      }
      return loader;
    }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

        return false;
    }
   
    public short item(int index) throws XSException {
        if (index < 0 || index >= fLength)
            throw new XSException(XSException.INDEX_SIZE_ERR, null);
        return fArray[index];
    }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

    for (int i = 0; i < paramStringList.getLength(); i++)
    {
      if (paramStringList.item(i).equals("1.0"))
        continue;
      String str = DOMMessageFormatter.formatMessage("http://www.w3.org/dom/DOMTR", "FEATURE_NOT_SUPPORTED", new Object[] { paramStringList.item(i) });
      throw new XSException(1, str);
    }
    return localXSLoaderImpl;
  }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

  public short item(int paramInt)
    throws XSException
  {
    if ((paramInt < 0) || (paramInt >= this.fLength))
      throw new XSException(2, null);
    return this.fArray[paramInt];
  }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

  public byte item(int paramInt)
    throws XSException
  {
    if ((paramInt < 0) || (paramInt > this.data.length - 1))
      throw new XSException(2, null);
    return this.data[paramInt];
  }
View Full Code Here

Examples of org.apache.xerces.xs.XSException

     */
    public byte item(int index)
        throws XSException {
       
        if(index < 0 || index > data.length - 1) {
            throw new XSException(XSException.INDEX_SIZE_ERR, null);
        }
        return data[index];
    }
View Full Code Here

Examples of org.sylfra.idea.plugins.xstructure.XSException

    boolean freshInstall = (!configDir.exists());
    if (freshInstall)
    {
      if (!configDir.mkdir())
      {
        throw new XSException("Can't create directory to store mapping files : "
          + configDir.getAbsolutePath());
      }
    }

    if ((freshInstall) || (settings.isSyncMappingsAtStartup()))
    {
      File destDir = new File(settings.getMappingsStorageDir(), "default");
      if ((!destDir.isDirectory()) && (!destDir.mkdir()))
      {
        throw new XSException("Can't create directory to store DEFAULT mapping files : "
          + configDir.getAbsolutePath());
      }

      for (File file : DefaultMappingsRegistry.getDefaultMappings())
      {
        File destFile = new File(destDir, file.getName());
        if ((!destFile.exists()) || (settings.isOverwriteWhenSyncMappings()))
        {
          try
          {
            FileUtil.copy(file, destFile);
          }
          catch (IOException e)
          {
            throw new XSException("Can't copy configuration file to "
              + destFile.getAbsolutePath(), e);
          }
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.