org.rubato.math.yoneda
Class RubatoAddressException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.rubato.base.RubatoException
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
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 |
RubatoAddressException
public RubatoAddressException(java.lang.String s,
Module receivedAddress,
Module expectedAddress)
- Creates a standard RubatoAddressException.
- Parameters:
s
- description of the exceptionreceivedAddress
- the actual addressexpectedAddress
- the expected address
getReceivedAddress
public Module getReceivedAddress()
- Returns the actual (received) address.
getExpectedAddress
public Module getExpectedAddress()
- Returns the expected (required) address.