Package javax.jms

Examples of javax.jms.InvalidSelectorException


        try {
            return this.JmsSelector();
        }
        catch (Throwable e) {
                throw (InvalidSelectorException)new InvalidSelectorException(sql).initCause(e);
        }

    }
View Full Code Here


        catch (ConnectionErrorException e)
        {
            Error error = e.getRemoteError();
            if(AmqpError.INVALID_FIELD.equals(error.getCondition()))
            {
                throw new InvalidSelectorException(e.getMessage());
            }
            else
            {
                JMSException jmsException =
                        new JMSException(e.getMessage(), error.getCondition().getValue().toString());
View Full Code Here

        try {
            return this.JmsSelector();
        }
        catch (TokenMgrError e) {
            throw new InvalidSelectorException(e.getMessage());
        }
        catch (ParseException e) {
            throw new InvalidSelectorException(e.getMessage());
        }
    }
View Full Code Here

    protected BooleanExpression parse() throws InvalidSelectorException {
        try {
            return this.JmsSelector();
        }
        catch (Throwable e) {
            throw (InvalidSelectorException) new InvalidSelectorException(sql).initCause(e);
        }
    }
View Full Code Here

/* 102 */       this.resultType = this.result.getClass();
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 106 */       if (log.isTraceEnabled()) log.trace("Invalid selector:" + sel);
/* 107 */       throw new InvalidSelectorException("The selector is invalid: " + sel);
/*     */     }
/*     */   }
View Full Code Here

         case HornetQException.INTERNAL_ERROR:
            je = new JMSException(me.getMessage());
            break;

         case HornetQException.INVALID_FILTER_EXPRESSION:
            je = new InvalidSelectorException(me.getMessage());
            break;

         case HornetQException.NOT_CONNECTED:
            je = new JMSException(me.getMessage());
            break;
View Full Code Here

    _left = left;
    _low = low;
    _high = high;

    if (! _left.isUnknown() && ! _left.isNumber())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
               this));
    if (! _low.isUnknown() && ! _low.isNumber())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
               this));
    if (! _high.isUnknown() && ! _high.isNumber())
      throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
               this));
  }
View Full Code Here

      return null;
   
    Selector selector = parseExpr();

    if (! selector.isUnknown() && ! selector.isBoolean())
      throw new InvalidSelectorException(L.l("selector '{0}' must be a boolean",
               selector));

    return selector;
  }
View Full Code Here

   */
  public JMSException error(String msg)
  {
    msg += "\nin \"" + _query + "\"";
   
    return new InvalidSelectorException(msg);
  }
View Full Code Here

    case SelectorParser.LT:
    case SelectorParser.LE:
    case SelectorParser.GT:
    case SelectorParser.GE:
      if (! _left.isUnknown() && ! _left.isNumber())
  throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                 this));
      if (! _right.isUnknown() && ! _right.isNumber())
  throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                 this));
      break;
    case SelectorParser.EQ:
    case SelectorParser.NE:
      if (_left.isUnknown() || _right.isUnknown()) {
      }
      else if (_left.isNumber() != _right.isNumber()) {
  throw new InvalidSelectorException(L.l("'{0}' test must have matching types.",
                 this));
      }
      break;
     
    case SelectorParser.AND:
    case SelectorParser.OR:
      if (! _left.isUnknown() && ! _left.isBoolean())
  throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                 this));
      if (! _right.isUnknown() && ! _right.isBoolean())
  throw new InvalidSelectorException(L.l("'{0}' must have a numeric value for comparison.",
                 this));
      break;
    }
  }
View Full Code Here

TOP

Related Classes of javax.jms.InvalidSelectorException

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.