pl.edu.pjwstk.yaod.yaql.engine
Class TypeMismatchException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--pl.edu.pjwstk.yaod.yaql.SBQLException
                    |
                    +--pl.edu.pjwstk.yaod.yaql.visitors.EvalException
                          |
                          +--pl.edu.pjwstk.yaod.yaql.engine.TypeMismatchException
All Implemented Interfaces:
java.io.Serializable

public class TypeMismatchException
extends EvalException

The TypeMismatchException class represents an exception which is thrown if an error occurs during evaluation. It possess the reason of the error in message value.

Author:
Jakub Trzetrzelewski, jakub_trzetrzelewski@yahoo.com
See Also:
EvalException, QueryResult, Serialized Form

Fields inherited from class pl.edu.pjwstk.yaod.yaql.SBQLException
message
 
Constructor Summary
TypeMismatchException(QueryResult l, java.lang.String message)
          Creates a new exception with specified message, based on an unary operator type mismatch.
TypeMismatchException(QueryResult l, java.lang.String message, QueryResult r)
          Creates a new exception with specified message, based on a binary operator type mismatch.
TypeMismatchException(QueryResult l, java.lang.String message, QueryResult m, QueryResult r)
          Creates a new exception with specified message, based on a ternary operator type mismatch.
TypeMismatchException(java.lang.String message)
          Creates a new exception with specified message.
TypeMismatchException(java.lang.String message1, QueryResult l, java.lang.String message2, QueryResult r, java.lang.String message3)
          Creates a new exception with message.
 
Method Summary
 java.lang.String getExceptionName()
          Returns the exception name.
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.visitors.EvalException
getFullMessage
 
Methods inherited from class pl.edu.pjwstk.yaod.yaql.SBQLException
getMessage, setMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeMismatchException

public TypeMismatchException(java.lang.String message)
Creates a new exception with specified message.
Parameters:
message - the message representing the error.

TypeMismatchException

public TypeMismatchException(QueryResult l,
                             java.lang.String message)
Creates a new exception with specified message, based on an unary operator type mismatch.
Parameters:
message - the message representing the error.
l - the operand of such operator.

TypeMismatchException

public TypeMismatchException(QueryResult l,
                             java.lang.String message,
                             QueryResult r)
Creates a new exception with specified message, based on a binary operator type mismatch.
Parameters:
message - the message representing the error.
l - the left operand of such operator.
r - the right operand of such operator.

TypeMismatchException

public TypeMismatchException(QueryResult l,
                             java.lang.String message,
                             QueryResult m,
                             QueryResult r)
Creates a new exception with specified message, based on a ternary operator type mismatch.
Parameters:
message - the message representing the error.
l - the left operand of such operator.
m - the medium operand of such operator.
r - the right operand of such operator.

TypeMismatchException

public TypeMismatchException(java.lang.String message1,
                             QueryResult l,
                             java.lang.String message2,
                             QueryResult r,
                             java.lang.String message3)
Creates a new exception with message. A message consists of
Parameters:
message1 - the part of a message representing the error.
message2 - the part of a message representing the error.
message3 - the part of a message representing the error.
l - the first result.
r - the second result.
Method Detail

getExceptionName

public java.lang.String getExceptionName()
Returns the exception name.
Overrides:
getExceptionName in class EvalException
Returns:
the message representing the exception name.