Package plugins.Freetalk.exceptions

Examples of plugins.Freetalk.exceptions.DuplicateMessageException


      ObjectSet<DownloadedMessageLink> messageLinks = new Persistent.InitializingObjectSet<Board.DownloadedMessageLink>(mFreetalk, q);
     
      switch(messageLinks.size()) {
        case 0: throw new NoSuchMessageException(message.getID());
        case 1: return messageLinks.next();
        default: throw new DuplicateMessageException(message.getID());
      }
    }
View Full Code Here


      final ObjectSet<DownloadedMessageLink> messageLinks = new Persistent.InitializingObjectSet<Board.DownloadedMessageLink>(mFreetalk, q);
     
      switch(messageLinks.size()) {
        case 0: throw new NoSuchMessageException("index: " + index);
        case 1: return messageLinks.next();
        default: throw new DuplicateMessageException("index: " + index);
      }
    }
View Full Code Here

        m.initializeTransient(mFreetalk);
        return m;
      case 0:
        throw new NoSuchMessageException(id);
      default:
        throw new DuplicateMessageException(id);
    }
  }
View Full Code Here

        m.initializeTransient(mFreetalk);
        return m;
      case 0:
        throw new NoSuchMessageException(id);
      default:
        throw new DuplicateMessageException(id);
    }
  }
View Full Code Here

        case 1:
          final UnwantedMessageLink link = results.next();
          assert(message.equals(link.getMessage()));
          return link;
        default:
          throw new DuplicateMessageException(message.getID());
      }
    }
View Full Code Here

        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

        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

            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.DuplicateMessageException

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.