Package plugins.Freetalk.exceptions

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


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

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

      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

        final BoardReplyLink replyRef = results.next();
        assert(threadID.equals(replyRef.getThreadID())); // The query works
        assert(messageID.equals(replyRef.getMessageID())); // The query works
        return replyRef;
          case 0:
            throw new NoSuchMessageException(messageID);
          default:
            throw new DuplicateMessageException(messageID);
        }
    }
View Full Code Here

        final BoardThreadLink threadRef = results.next();
        threadRef.initializeTransient(mFreetalk);
        assert(threadID.equals(threadRef.getThreadID())); // The query works
        return threadRef;
          case 0:
            throw new NoSuchMessageException(threadID);
          default:
            throw new DuplicateMessageException(threadID);
        }
    }
View Full Code Here

        q.descend("mBoard").constrain(this).identity();
        q.descend("mIndex").orderAscending();
        final ObjectSet<BoardMessageLink> result = new Persistent.InitializingObjectSet<SubscribedBoard.BoardMessageLink>(mFreetalk, q);
       
        if(result.size() == 0)
          throw new NoSuchMessageException();
       
        return result.next().getIndex();
    }
View Full Code Here

        q.descend("mBoard").constrain(this).identity();
        q.descend("mIndex").orderDescending();
        final ObjectSet<BoardMessageLink> result = new Persistent.InitializingObjectSet<SubscribedBoard.BoardMessageLink>(mFreetalk, q);
       
        if(result.size() == 0)
          throw new NoSuchMessageException();
       
        return result.next().getIndex();
    }
View Full Code Here

          case 1:
            final BoardMessageLink ref = result.next();
            ref.initializeTransient(mFreetalk);
            return ref;
          case 0:
              throw new NoSuchMessageException();
          default:
            throw new DuplicateMessageException("index " + Integer.toString(index));
        }
    }
View Full Code Here

TOP

Related Classes of plugins.Freetalk.exceptions.NoSuchMessageException

Copyright © 2018 www.massapicom. 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.