Examples of Exceptions


Examples of net.sf.mpxj.mspdi.schema.Project.Calendars.Calendar.Exceptions

    * @param calendar parent calendar
    * @param exceptions list of exceptions
    */
   private void writeExcepions12(Project.Calendars.Calendar calendar, List<ProjectCalendarException> exceptions)
   {
      Exceptions ce = m_factory.createProjectCalendarsCalendarExceptions();
      calendar.setExceptions(ce);
      List<Exceptions.Exception> el = ce.getException();

      for (ProjectCalendarException exception : exceptions)
      {
         Exceptions.Exception ex = m_factory.createProjectCalendarsCalendarExceptionsException();
         el.add(ex);
View Full Code Here

Examples of net.sf.rej.java.Exceptions

    public CodeAttribute(int nameIndex, ConstantPool cp, int maxStack, int maxLocals) {
        super(nameIndex, cp);
        this.maxStack = maxStack;
        this.maxLocals = maxLocals;
        this.code = new Code(cp);
        this.exceptions = new Exceptions();
        this.attributes = new Attributes();
    }
View Full Code Here

Examples of net.sf.rej.java.Exceptions

        int codeLength = (int) parser.getInt();
        byte[] codeData = parser.getBytes(codeLength);
        ByteParser newParser = new ByteArrayByteParser(codeData);
        newParser.setBigEndian(true);
        this.code = new Code(newParser, pool);
        this.exceptions = new Exceptions(parser, pool);
        this.attributes = new Attributes(parser, pool);
        LineNumberTableAttribute lnAttr = this.attributes.getLineNumberTable();
        if (lnAttr != null) {
          lnAttr.setCode(this.code);
          this.code.setLineNumberTable(lnAttr);
View Full Code Here

Examples of org.netbeans.modules.exceptions.entity.Exceptions

        private void moveSimilarExceptions(EntityManager em, Report candidatesReport, Exceptions master, Report newReport) {
            // protect the first exception report
            candidatesReport.preloadSubmitCollection(em);
            List<Exceptions> candidates = new ArrayList(candidatesReport.getSubmitCollection());
            assert(!candidates.isEmpty());
            Exceptions minimal = candidates.iterator().next();
            for (Exceptions exceptions : candidates) {
                if (exceptions.getId() < minimal.getId()){
                    minimal = exceptions;
                }
            }
            candidates.remove(master);
            candidates.remove(minimal);

            //move exactly the same stacktraces
            Integer mashterHash = master.getHashcodes().getCode();
            Iterator<Exceptions> it = candidates.iterator();
            while (it.hasNext()) {
                Exceptions next = it.next();
                if (next.getHashcodes().getCode().equals(mashterHash)) {
                    it.remove();

                    next.setReportId(newReport);
                    em.merge(next);
                }
            }

            //move other very similar stacktraces
View Full Code Here

Examples of serp.bytecode.Exceptions

    private void addReadExternal(boolean parentDetachable,
        boolean detachedState)
        throws NoSuchMethodException {
        Class[] inargs = new Class[]{ ObjectInput.class };
        BCMethod meth = _pc.declareMethod("readExternal", void.class, inargs);
        Exceptions exceps = meth.getExceptions(true);
        exceps.addException(IOException.class);
        exceps.addException(ClassNotFoundException.class);
        Code code = meth.getCode(true);

        // super.readExternal (in);
        Class sup = _meta.getDescribedType().getSuperclass();
        if (!parentDetachable && Externalizable.class.isAssignableFrom(sup)) {
View Full Code Here

Examples of serp.bytecode.Exceptions

        throws NoSuchMethodException {
        Class[] inargs = new Class[]{ ObjectInput.class };
        BCMethod meth = _pc.declareMethod(PRE + "ReadUnmanaged", void.class,
            inargs);
        meth.makeProtected();
        Exceptions exceps = meth.getExceptions(true);
        exceps.addException(IOException.class);
        exceps.addException(ClassNotFoundException.class);
        Code code = meth.getCode(true);

        // super.readUnmanaged (in);
        if (parentDetachable) {
            loadManagedInstance(code, false);
View Full Code Here

Examples of serp.bytecode.Exceptions

    private void addWriteExternal(boolean parentDetachable,
        boolean detachedState)
        throws NoSuchMethodException {
        Class[] outargs = new Class[]{ ObjectOutput.class };
        BCMethod meth = _pc.declareMethod("writeExternal", void.class, outargs);
        Exceptions exceps = meth.getExceptions(true);
        exceps.addException(IOException.class);
        Code code = meth.getCode(true);

        // super.writeExternal (out);
        Class sup = getType(_meta).getSuperclass();
        if (!parentDetachable && Externalizable.class.isAssignableFrom(sup)) {
View Full Code Here

Examples of serp.bytecode.Exceptions

        throws NoSuchMethodException {
        Class[] outargs = new Class[]{ ObjectOutput.class };
        BCMethod meth = _pc.declareMethod(PRE + "WriteUnmanaged", void.class,
            outargs);
        meth.makeProtected();
        Exceptions exceps = meth.getExceptions(true);
        exceps.addException(IOException.class);
        Code code = meth.getCode(true);

        // super.writeUnmanaged (out);
        if (parentDetachable) {
            loadManagedInstance(code, false);
View Full Code Here

Examples of serp.bytecode.Exceptions

        if (code != null) {
            to.addAttribute(code);
            from.removeCode();
        }

        Exceptions exceps = from.getExceptions(false);
        if (exceps != null)
            to.addAttribute(exceps);
    }
View Full Code Here

Examples of serp.bytecode.Exceptions

    private void addReadExternal(boolean parentDetachable,
        boolean detachedState)
        throws NoSuchMethodException {
        Class[] inargs = new Class[]{ ObjectInput.class };
        BCMethod meth = _pc.declareMethod("readExternal", void.class, inargs);
        Exceptions exceps = meth.getExceptions(true);
        exceps.addException(IOException.class);
        exceps.addException(ClassNotFoundException.class);
        Code code = meth.getCode(true);

        // super.readExternal (in);
        // not sure if this works: this is depending on the order of the enhancement!
        // if the subclass gets enhanced first, then the superclass misses
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.