edu.vub.at.exceptions
Class XTypeMismatch

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byedu.vub.at.exceptions.InterpreterException
              extended byedu.vub.at.exceptions.XTypeMismatch
All Implemented Interfaces:
java.io.Serializable

public class XTypeMismatch
extends InterpreterException

XTypeMismatch instances are thrown when a value conversion failed.

Author:
smostinc, tvcutsem
See Also:
Serialized Form

Field Summary
private  java.lang.Class expectedType_
           
private  ATObject failedObject_
           
private static long serialVersionUID
           
 
Fields inherited from class edu.vub.at.exceptions.InterpreterException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
XTypeMismatch(java.lang.Class expectedType, ATObject failedObject)
           
 
Method Summary
 java.lang.Class getExpectedType()
           
 ATObject getFailedObject()
           
 java.lang.String getMessage()
           
 ATStripe getStripeType()
           
 
Methods inherited from class edu.vub.at.exceptions.InterpreterException
getAmbientTalkRepresentation, printAmbientTalkStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

failedObject_

private final ATObject failedObject_

expectedType_

private final java.lang.Class expectedType_
Constructor Detail

XTypeMismatch

public XTypeMismatch(java.lang.Class expectedType,
                     ATObject failedObject)
Method Detail

getFailedObject

public ATObject getFailedObject()

getExpectedType

public java.lang.Class getExpectedType()

getMessage

public java.lang.String getMessage()

getStripeType

public ATStripe getStripeType()
Specified by:
getStripeType in class InterpreterException