org.avis.client
Class InvalidSubscriptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.avis.client.RouterNackException
                  extended by org.avis.client.InvalidSubscriptionException
All Implemented Interfaces:
Serializable

public class InvalidSubscriptionException
extends RouterNackException

Thrown when a subscription parse error is detected by the router.

Author:
Matthew Phillips
See Also:
Serialized Form

Field Summary
 String expression
          The subscription expression that was rejected.
 int reason
          The reason the expression was rejected: one of SYNTAX_ERROR or TRIVIAL_EXPRESSION.
static int SYNTAX_ERROR
          Rejection code indicating there was a syntax error that prevented parsing.
static int TRIVIAL_EXPRESSION
          Rejection code indicating the expression was constant.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SYNTAX_ERROR

public static final int SYNTAX_ERROR
Rejection code indicating there was a syntax error that prevented parsing. e.g. missing ")".

See Also:
Constant Field Values

TRIVIAL_EXPRESSION

public static final int TRIVIAL_EXPRESSION
Rejection code indicating the expression was constant. i.e it matches everything or nothing. e.g. 1 != 1 or string ('hello').

See Also:
Constant Field Values

expression

public final String expression
The subscription expression that was rejected.


reason

public final int reason
The reason the expression was rejected: one of SYNTAX_ERROR or TRIVIAL_EXPRESSION.



Copyright © 2008 Matthew Phillips. All Rights Reserved.