pl.edu.pjwstk.yaod.yaql.visitors
Class ReturnException

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.visitors.ReturnException
All Implemented Interfaces:
java.io.Serializable

public class ReturnException
extends EvalException

The ReturnException class represents an exception which is thrown during program evaluation, when return statement occurs. It possess the result to be returned in result value.

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

Fields inherited from class pl.edu.pjwstk.yaod.yaql.SBQLException
message
 
Constructor Summary
ReturnException()
          Creates a new return exception.
ReturnException(QueryResult result)
          Creates a new return exception with specified result.
 
Method Summary
 java.lang.String getExceptionName()
          Returns the exception name.
 java.lang.String getFullMessage()
          Returns the full exception message.
 QueryResult getReturnValue()
          Return the value to be returned by return statement.
 
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

ReturnException

public ReturnException()
Creates a new return exception.

ReturnException

public ReturnException(QueryResult result)
Creates a new return exception with specified result.
Parameters:
return - the value to be returned by return statement.
Method Detail

getExceptionName

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

getFullMessage

public java.lang.String getFullMessage()
Returns the full exception message.
Overrides:
getFullMessage in class EvalException
Returns:
the message representing the reason of the exception.

getReturnValue

public QueryResult getReturnValue()
Return the value to be returned by return statement.
Returns:
the value to be returned by return statement.