uk.ac.ic.doc.automed.reps
Class BadSchemaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by uk.ac.ic.doc.automed.AutoMedException
              extended by uk.ac.ic.doc.automed.reps.BadSchemaException
All Implemented Interfaces:
java.io.Serializable

public class BadSchemaException
extends AutoMedException

The class of exceptions generated when the contents of an intentional schema materialized via a particular transformation pathway are not the same as those of the same schema materialized via its default transformation pathway (path to the cloesest extensional schema).

Author:
Michael Boyd (mboyd@doc.ic.ac.uk), Nerissa Tong (nnyt98@doc.ic.ac.uk)
See Also:
Serialized Form

Constructor Summary
BadSchemaException(java.lang.String msg, Schema badSchema)
          Creates a BadSchemaException.
 
Method Summary
 Schema getSchema()
          Returns the bad schema.
 
Methods inherited from class uk.ac.ic.doc.automed.AutoMedException
getCause, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadSchemaException

public BadSchemaException(java.lang.String msg,
                          Schema badSchema)
Creates a BadSchemaException.

Parameters:
msg - message for the exception.
badSchema - the schema, materialized via a particular transformation pathway, whose contents are not the same as those in the same schema materialized via its default transformation pathway.
Method Detail

getSchema

public Schema getSchema()
Returns the bad schema. A bad schema is one materialized via a particular transformation pathway, whose contents are not the same as those in the same schema materialized via its default transformation pathway.

Parameters:
msg - message for the exception.
badSchema - the schema, materialized via a particular transformation pathway, whose contents are not the same as those in the same schema materialized via its default transformation pathway.
Returns:
the bad schema. A bad schema is one materialized via a particular transformation pathway, whose contents are not the same as those in the same schema materialized via its default transformation pathway.