org.rubato.math.yoneda
Class RubatoAddressException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.rubato.base.RubatoException
              extended by org.rubato.math.yoneda.RubatoAddressException
All Implemented Interfaces:
java.io.Serializable

public final class RubatoAddressException
extends RubatoException

Exception thrown in cases of mismatched addresses. This exception is thrown, among others, when a denotator with a given address is expected, but does not have that address.

Author:
Gérard Milmeister
See Also:
Serialized Form

Constructor Summary
RubatoAddressException(java.lang.String s, Module receivedAddress, Module expectedAddress)
          Creates a standard RubatoAddressException.
 
Method Summary
 Module getExpectedAddress()
          Returns the expected (required) address.
 Module getReceivedAddress()
          Returns the actual (received) address.
 
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
 

Constructor Detail

RubatoAddressException

public RubatoAddressException(java.lang.String s,
                              Module receivedAddress,
                              Module expectedAddress)
Creates a standard RubatoAddressException.

Parameters:
s - description of the exception
receivedAddress - the actual address
expectedAddress - the expected address
Method Detail

getReceivedAddress

public Module getReceivedAddress()
Returns the actual (received) address.


getExpectedAddress

public Module getExpectedAddress()
Returns the expected (required) address.