org.rubato.math.yoneda
Class RubatoFormException

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.RubatoFormException
All Implemented Interfaces:
java.io.Serializable

public final class RubatoFormException
extends RubatoException

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

Author:
Gérard Milmeister
See Also:
Serialized Form

Constructor Summary
RubatoFormException(Form expected, Form received, java.lang.String src)
          Creates a standard RubatoFormException with an automatically generated message.
RubatoFormException(java.lang.String msg, Form expected, Form received)
          Creates a standard RubatoFormException with a message.
 
Method Summary
 Form getExpectedForm()
          Returns the expected form.
 Form getReceivedForm()
          Returns the actual (received) 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
 

Constructor Detail

RubatoFormException

public RubatoFormException(java.lang.String msg,
                           Form expected,
                           Form received)
Creates a standard RubatoFormException with a message.

Parameters:
expected - the form that was required
received - the actual form
msg - message of the exception

RubatoFormException

public RubatoFormException(Form expected,
                           Form received,
                           java.lang.String src)
Creates a standard RubatoFormException with an automatically generated message.

Parameters:
expected - the form that was required
received - the actual form
Method Detail

getReceivedForm

public Form getReceivedForm()
Returns the actual (received) form.


getExpectedForm

public Form getExpectedForm()
Returns the expected form.