OutOfSequenceBeforeProxyException.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Licensed to Jasig under one or more contributor license
  4. * agreements. See the NOTICE file distributed with this work for
  5. * additional information regarding copyright ownership.
  6. *
  7. * Jasig licenses this file to you under the Apache License,
  8. * Version 2.0 (the "License"); you may not use this file except in
  9. * compliance with the License. You may obtain a copy of the License at:
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. *
  20. * PHP Version 5
  21. *
  22. * @file CAS/OutOfSequenceBeforeProxyException.php
  23. * @category Authentication
  24. * @package PhpCAS
  25. * @author Joachim Fritschi <jfritschi@freenet.de>
  26. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  27. * @link https://wiki.jasig.org/display/CASC/phpCAS
  28. */
  29. /**
  30. * This class defines Exceptions that should be thrown when the sequence of
  31. * operations is invalid. In this case it should be thrown when the proxy() call
  32. * has not yet happened and no proxy object exists.
  33. *
  34. * @class CAS_OutOfSequenceBeforeProxyException
  35. * @category Authentication
  36. * @package PhpCAS
  37. * @author Joachim Fritschi <jfritschi@freenet.de>
  38. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  39. * @link https://wiki.jasig.org/display/CASC/phpCAS
  40. */
  41. class CAS_OutOfSequenceBeforeProxyException
  42. extends CAS_OutOfSequenceException
  43. implements CAS_Exception
  44. {
  45. /**
  46. * Return standard error message
  47. *
  48. * @return void
  49. */
  50. public function __construct ()
  51. {
  52. parent::__construct(
  53. 'this method cannot be called before phpCAS::proxy()'
  54. );
  55. }
  56. }