Source for file ModelConstraintException.exception.php

Documentation is available at ModelConstraintException.exception.php

  1. <?PHP
  2. /**
  3. * @package org.phptmapi.core
  4. */
  5. require_once('TMAPIRuntimeException.exception.php');
  6. /**
  7. * public class ModelConstraintException: Exception thrown when an attempt is made to modify a TopicMapObjectInterface in a way which violates a constraint of the currently enabled processor model.
  8. *
  9. * @author Johannes Schmidt - t8d <kontakt@t8d.de>
  10. */
  11. class ModelConstraintException extends TMAPIRuntimeException{
  12. /**
  13. * Constructor
  14. * @param object TopicMapObjectInterface $modifiedObject
  15. * @param string $msg
  16. * @access public
  17. */
  18. public function __construct(TopicMapObjectInterface $modifiedObject, $msg){
  19. $this->obj = $modifiedObject;
  20. parent::__construct($msg);
  21. }
  22. /**
  23. * getModifiedObject: Returns the object that was tried to modify.
  24. * @access public
  25. * @return object TopicMapObjectInterface
  26. */
  27. public function getModifiedObject(){
  28. return $this->obj;
  29. }
  30. }
  31. ?>

Documentation generated on Fri, 30 Jun 2006 13:06:56 +0200 by phpDocumentor 1.3.0RC4