edu.vub.at.exceptions
Class XSymbiosisFailure

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

public class XSymbiosisFailure
extends InterpreterException

An instance of this class is raised whenever a symbiotic method invocation fails due to overloading which could not be resolved given the actual arguments.

Author:
tvcutsem
See Also:
Serialized Form

Field Summary
private  java.lang.String message_
           
private static long serialVersionUID
           
 
Fields inherited from class edu.vub.at.exceptions.InterpreterException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
XSymbiosisFailure(java.lang.Class failedClass, java.lang.reflect.Constructor[] choices, ATObject[] atArgs, int numMatchingCtors)
          Reports that an overloaded constructor could not be resolved to a unique implementation.
XSymbiosisFailure(java.lang.Object symbiont, java.lang.String selector, ATObject[] atArgs)
          Reports that an overloaded method could not be resolved to a unique implementation because there are no matches for any static types.
XSymbiosisFailure(java.lang.Object symbiont, java.lang.String selector, java.util.LinkedList choices, ATObject[] atArgs)
          Reports that an overloaded method could not be resolved to a unique implementation because there are multiple matches.
 
Method Summary
 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

message_

private final java.lang.String message_
Constructor Detail

XSymbiosisFailure

public XSymbiosisFailure(java.lang.Object symbiont,
                         java.lang.String selector,
                         java.util.LinkedList choices,
                         ATObject[] atArgs)
                  throws InterpreterException
Reports that an overloaded method could not be resolved to a unique implementation because there are multiple matches.

Parameters:
symbiont - the Java object upon which the overloaded symbiotic invocation failed.
selector - the name of the invoked overloaded method
choices - a linked list of all applicable java.lang.Method objects
atArgs - the actual arguments to the overloaded invocation

XSymbiosisFailure

public XSymbiosisFailure(java.lang.Object symbiont,
                         java.lang.String selector,
                         ATObject[] atArgs)
                  throws InterpreterException
Reports that an overloaded method could not be resolved to a unique implementation because there are no matches for any static types.

Parameters:
symbiont - the Java object upon which the overloaded symbiotic invocation failed.
selector - the name of the invoked overloaded method
atArgs - the actual arguments to the overloaded invocation

XSymbiosisFailure

public XSymbiosisFailure(java.lang.Class failedClass,
                         java.lang.reflect.Constructor[] choices,
                         ATObject[] atArgs,
                         int numMatchingCtors)
                  throws InterpreterException
Reports that an overloaded constructor could not be resolved to a unique implementation.

Parameters:
failedClass - the Java class whose constructor could not be resolved.
choices - all applicable constructors (may contain null values, corresponding to non-applicable choices)
numMatchingCtors - the number of matching constructors (the number of non-null values in choices)
Method Detail

getMessage

public java.lang.String getMessage()

getStripeType

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