Examples of MessageException


Examples of com.aelitis.azureus.core.peermanager.messaging.MessageException

  }
 
 
  public Message deserialize( DirectByteBuffer data, byte version ) throws MessageException {  
    if( data == null ) {
      throw new MessageException( "[" +getID() + "] decode error: data == null" );
    }
   
    if( data.remaining( DirectByteBuffer.SS_MSG ) != 12 ) {
      throw new MessageException( "[" +getID() + "] decode error: payload.remaining[" +data.remaining( DirectByteBuffer.SS_MSG )+ "] != 12" );
    }
   
    int num = data.getInt( DirectByteBuffer.SS_MSG );
    if( num < 0 ) {
      throw new MessageException( "[" +getID() + "] decode error: num < 0" );
    }
   
    int offset = data.getInt( DirectByteBuffer.SS_MSG );
    if( offset < 0 ) {
      throw new MessageException( "[" +getID() + "] decode error: offset < 0" );
    }
   
    int length = data.getInt( DirectByteBuffer.SS_MSG );
    if( length < 0 ) {
      throw new MessageException( "[" +getID() + "] decode error: length < 0" );
    }
   
    data.returnToPool();
   
    return new BTRequest( num, offset, length, version );
View Full Code Here

Examples of com.aelitis.azureus.core.peermanager.messaging.MessageException

    DirectByteBuffer   data,
    byte        version )
 
    throws MessageException
  {
    throw( new MessageException( "not supported" ));
  }
View Full Code Here

Examples of com.aelitis.azureus.core.peermanager.messaging.MessageException

 
  public DirectByteBuffer[] getData() {  return new DirectByteBuffer[] {}}
 
  public Message deserialize( DirectByteBuffer data, byte version ) throws MessageException {
    if( data != null && data.hasRemaining( DirectByteBuffer.SS_MSG ) ) {
      throw new MessageException( "[" +getID() + "] decode error: payload not empty [" +data.remaining(DirectByteBuffer.SS_MSG)+ "]" );
    }
   
    if( data != null data.returnToPool();
   
    return new BTHaveAll(version);
View Full Code Here

Examples of com.aelitis.azureus.core.peermanager.messaging.MessageException

 
  public DirectByteBuffer[] getData() {  return new DirectByteBuffer[] {}}
 
  public Message deserialize( DirectByteBuffer data, byte version ) throws MessageException {
    if( data != null && data.hasRemaining( DirectByteBuffer.SS_MSG ) ) {
      throw new MessageException( "[" +getID() + "] decode error: payload not empty [" +data.remaining(DirectByteBuffer.SS_MSG)+ "]" );
    }
   
    if( data != null data.returnToPool();
   
    return new BTHaveNone(version);
View Full Code Here

Examples of com.caucho.jms.queue.MessageException

  {
    try {
      QueueEntry queueEntry = (QueueEntry)entry;
      return isMatch((Message)queueEntry.getPayload());
    } catch (JMSException je) {
      throw new MessageException(je);
    }
  } 
View Full Code Here

Examples of com.freewebsys.sns.service.MessageException

  public void deleteMessageById(Integer id) throws MessageException {
    try {
      Message message = (Message) baseDao.findById(Message.class, id);
      baseDao.delete(message);
    } catch (Exception e) {
      throw new MessageException("Message删除异常");
    }
  }
View Full Code Here

Examples of com.google.walkaround.slob.shared.MessageException

public final class RpcUtil {
  private RpcUtil(){}

  public static JsoView evalPrefixed(String data) throws MessageException {
    if (!data.startsWith(SharedConstants.XSSI_PREFIX)) {
      throw new MessageException("Data did not start with XSSI prefix: " + data);
    }
    return JsUtil.eval(data.substring(SharedConstants.XSSI_PREFIX.length()));
  }
View Full Code Here

Examples of com.saasovation.common.port.adapter.messaging.MessageException

        this.setType(aType);

        try {
            this.channel().exchangeDeclare(aName, aType, isDurable);
        } catch (IOException e) {
            throw new MessageException("Failed to create/open the exchange.", e);
        }
    }
View Full Code Here

Examples of com.stimulus.archiva.exception.MessageException

                       return Location.INTERNAL;
                 }
             }
              return Location.EXTERNAL;
          } catch (Exception e) {
              throw new MessageException(e.toString(),e,logger);
          }
      }
View Full Code Here

Examples of com.sun.jersey.api.MessageException

                    getReaders(mediaType);
            message += "The registered message body readers compatible with the MIME media type are:\n" +
                    getMessageBodyWorkers().readersToString(m);
            LOGGER.severe(message);
            throw new WebApplicationException(
                    new MessageException(message),
                    Responses.unsupportedMediaType().build());
        }

        if (isTracingEnabled()) {
            trace(String.format("matched message body reader: %s, \"%s\" -> %s",
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.