IExceptionHandler.php 816 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This file is part of amfPHP
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the license that is bundled
  8. * with this package in the file license.txt.
  9. */
  10. /**
  11. * An exception handler is passed an exception and must translate that into something that is serializable. In the case of Amf, it must return an Amfphp_Core_Amf_Packet object
  12. * containing the relevant information
  13. *
  14. * @package Amfphp_Core_Common
  15. * @author Ariel Sommeria-klein
  16. */
  17. interface Amfphp_Core_Common_IExceptionHandler {
  18. /**
  19. * generates an object describing the exception.
  20. * @param Exception $exception the exception object to analyze
  21. * @return mixed an object describing the error, that will be serialized and sent back to the client
  22. */
  23. public function handleException(Exception $exception);
  24. }
  25. ?>