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.  */
  27.  
  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. {
  42.  
  43.     /**
  44.      * Stores the parent exception.
  45.      * Each transformation exception is based on a parent, which can be any
  46.      * ezcImage* exception. The transformation exception deals as a collection
  47.      * container to catch all these exception at once.
  48.      * 
  49.      * @var ezcImageException 
  50.      */
  51.     public $parent;
  52.     
  53.     /**
  54.      * Creates a new ezcImageTransformationException using a parent exception.
  55.      * Creates a new ezcImageTransformationException and appends an existing
  56.      * exception to it. The ezcImageTransformationException is just the catch-
  57.      * all container. The parent is stored for logging/debugging purpose.
  58.      * 
  59.      * @param ezcBaseException $e Any exception that may occur during
  60.      *                             transformation.
  61.      */
  62.     public function __constructezcBaseException $e )
  63.     {
  64.         $this->parent = $e;
  65.         $message $e->getMessage();
  66.         parent::__construct"Transformation failed. '{$message}'.);
  67.     }
  68.  
  69. }
  70. ?>
Documentation generated by phpDocumentor 1.4.3