PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/Archive/src/exceptions/empty.php

https://github.com/Yannix/zetacomponents
PHP | 43 lines | 9 code | 1 blank | 33 comment | 0 complexity | c0fdc7e9f5519d1a414825a2fa94b62e MD5 | raw file
  1. <?php
  2. /**
  3. * File containing the ezcArchiveEmptyException class.
  4. *
  5. * Licensed to the Apache Software Foundation (ASF) under one
  6. * or more contributor license agreements. See the NOTICE file
  7. * distributed with this work for additional information
  8. * regarding copyright ownership. The ASF licenses this file
  9. * to you under the Apache License, Version 2.0 (the
  10. * "License"); you may not use this file except in compliance
  11. * with the License. You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing,
  16. * software distributed under the License is distributed on an
  17. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18. * KIND, either express or implied. See the License for the
  19. * specific language governing permissions and limitations
  20. * under the License.
  21. *
  22. * @package Archive
  23. * @version //autogentag//
  24. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  25. */
  26. /**
  27. * Exception for when an archive is empty.
  28. *
  29. * @package Archive
  30. * @version //autogentag//
  31. */
  32. class ezcArchiveEmptyException extends ezcArchiveException
  33. {
  34. /**
  35. * Constructs a new exception for empty archive.
  36. */
  37. public function __construct()
  38. {
  39. parent::__construct( "The archive is empty." );
  40. }
  41. }
  42. ?>