|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.rubato.base.RubatoException
org.rubato.math.module.DomainException
public final class DomainException
This exception is thrown whenever a module element operation fails due to a wrong domain. The exception contains two pieces of information. The expected module indicates the domain that the element was to be part of. The received module is the domain that the actual element is part of.
Constructor Summary | |
---|---|
DomainException(Module expected,
Module received)
Creates a DomainException. |
|
DomainException(java.lang.String message,
Module expected,
Module received)
Creates a DomainException. |
Method Summary | |
---|---|
Module |
getExpectedDomain()
Returns the module that was required. |
Module |
getReceivedDomain()
Returns the actual module. |
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 |
---|
public DomainException(java.lang.String message, Module expected, Module received)
message
- indicates the reason for the exceptionexpected
- the module (or element of that module) that was requiredreceived
- the actual module (or element of that module)public DomainException(Module expected, Module received)
expected
and received
.
expected
- the module (or element of that module) that was requiredreceived
- the actual module (or element of that module)Method Detail |
---|
public Module getExpectedDomain()
public Module getReceivedDomain()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |