OutOfSequenceBeforeClientException.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/OutOfSequenceBeforeClientException.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 client() or
  32. * proxy() call has not yet happened and no client or proxy object exists.
  33. *
  34. * @class CAS_OutOfSequenceBeforeClientException
  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_OutOfSequenceBeforeClientException
  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::client() or phpCAS::proxy()'
  54. );
  55. }
  56. }