|
|||||||||
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.morphism.MappingException
public final class MappingException
Exception thrown when a module morphism fails to map an element. This exception is thrown, for example, when the element is not in the domain of the morphism. It can, however, also be thrown, when arithmetical error occurs, for example, division by zero.
Constructor Summary | |
---|---|
MappingException(ModuleElement element,
ModuleMorphism morphism)
Creates a MappingException with a standard message string. |
|
MappingException(java.lang.String msg,
ModuleElement element,
ModuleMorphism morphism)
Creates a MappingException with a standard message string. |
Method Summary | |
---|---|
ModuleElement |
getElement()
Returns the element that failed to be mapped. |
ModuleMorphism |
getModuleMorphism()
Returns the morphism where the failure occurred. |
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 MappingException(java.lang.String msg, ModuleElement element, ModuleMorphism morphism)
msg
- a message to prepend to the standard messageelement
- the ModuleElement to be mappedmorphism
- the ModuleMorphism where the exception occurredpublic MappingException(ModuleElement element, ModuleMorphism morphism)
element
- the ModuleElement to be mappedmorphism
- the ModuleMorphism where the exception occurredMethod Detail |
---|
public ModuleElement getElement()
public ModuleMorphism getModuleMorphism()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |