ostatusshadowexception.php 595 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. if (!defined('GNUSOCIAL')) { exit(1); }
  3. /**
  4. * @package OStatusPlugin
  5. * @maintainer Mikael Nordfeldth <mmn@hethane.se>
  6. */
  7. /**
  8. * Exception indicating we've got a remote reference to a local user,
  9. * not a remote user!
  10. *
  11. * If we can ue a local profile after all, it's available as $e->profile.
  12. */
  13. class OStatusShadowException extends Exception
  14. {
  15. public $profile;
  16. /**
  17. * @param Profile $profile
  18. * @param string $message
  19. */
  20. function __construct(Profile $profile, $message) {
  21. $this->profile = $profile;
  22. parent::__construct($message);
  23. }
  24. }