Examples of NoSuchMessageException


Examples of plugins.Freetalk.exceptions.NoSuchMessageException

                    throw new UnsupportedOperationException();
                }
            };

            if (!iter.hasNext())
                throw new NoSuchMessageException();

            return iter;
    }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

   */
  public final synchronized MessageURI getThreadURI() throws NoSuchMessageException {
    checkedActivate(1);

    if(mThreadURI == null)
      throw new NoSuchMessageException();

    mThreadURI.initializeTransient(mFreetalk);
    return mThreadURI;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

   */
  public final synchronized String getThreadID() throws NoSuchMessageException {
    checkedActivate(1); // String is a db4o primitive type so 1 is enough

    if(mThreadID == null)
      throw new NoSuchMessageException();

    return mThreadID;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

   */
  public final MessageURI getParentURI() throws NoSuchMessageException {
    checkedActivate(1);

    if(mParentURI == null)
      throw new NoSuchMessageException();

    mParentURI.initializeTransient(mFreetalk);
    return mParentURI;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

  public final String getParentID() throws NoSuchMessageException {
    checkedActivate(1); // String is a db4o primitive type so 1 is enough

    if(mParentID == null)
      throw new NoSuchMessageException();

    return mParentID;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

  public final synchronized Message getThread() throws NoSuchMessageException {
    /* TODO: Find all usages of this function and check whether we might want to use a higher depth here */
    checkedActivate(1);

    if(mThread == null)
      throw new NoSuchMessageException();

    mThread.initializeTransient(mFreetalk);
    return mThread;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

  public synchronized Message getParent() throws NoSuchMessageException {
    /* TODO: Find all usages of this function and check whether we might want to use a higher depth here */
    checkedActivate(1);

    if(mParent == null)
      throw new NoSuchMessageException();

    mParent.initializeTransient(mFreetalk);
    return mParent;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

    for(MessageReference ref : this) {
      if(ref.getURI().equals(messageURI))
        return ref;
    }
   
    throw new NoSuchMessageException();
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

          catch(MessageNotFetchedException e)  {
            // Continue to next BoardMessageLink
          }
        }
       
        throw new NoSuchMessageException();
    }
View Full Code Here

Examples of plugins.Freetalk.exceptions.NoSuchMessageException

      q.descend("mMessage").constrain(message).identity();
      ObjectSet<UnwantedMessageLink> results = new Persistent.InitializingObjectSet<UnwantedMessageLink>(mFreetalk, q);
     
      switch(results.size()) {
        case 0:
          throw new NoSuchMessageException(message.getID());
        case 1:
          final UnwantedMessageLink link = results.next();
          assert(message.equals(link.getMessage()));
          return link;
        default:
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.