## Apache Zeta Components Manual :: File Source for transformation.php

## Source for file transformation.php

Documentation is available at transformation.php

1. <?php
2. /**
3. * File containing the abstract class ezcImageTransformationException.
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 ImageConversion
23. * @version //autogentag//
24. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
25. * @filesource
26. */
28. /**
29. * Exception to be thrown be ezcImageTransformation classes.
30. *
31. * This is a special exception which is used in ezcImageTransformation to
32. * catch all transformation exceptions. Purpose is to provide a catch
33. * all for all transformation inherited excptions, that leaves the source
34. * exception in tact for logging or analysis purposes.
35. *
36. * @see ezcImageTransformation
37. *
38. * @package ImageConversion
39. * @version //autogentag//
40. */
41. class ezcImageTransformationException extends ezcImageException
42. {
44. /**
45. * Stores the parent exception.
46. * Each transformation exception is based on a parent, which can be any
47. * ezcImage* exception. The transformation exception deals as a collection
48. * container to catch all these exception at once.
49. *
50. * @var ezcImageException
51. */
52. public $parent ;
54. /**
55. * Creates a new ezcImageTransformationException using a parent exception.
56. * Creates a new ezcImageTransformationException and appends an existing
57. * exception to it. The ezcImageTransformationException is just the catch-
58. * all container. The parent is stored for logging/debugging purpose.
59. *
60. * @param ezcBaseException $e Any exception that may occur during
61. * transformation.
62. */
63. public function __construct ( ezcBaseException $e )
64. {
65. $this-> parent = $e;
66. $message = $e->getMessage();
67. parent ::__construct( "Transformation failed. '{$message}'." );
68. }
70. }
71. ?>

Documentation generated by phpDocumentor 1.4.3