sfImageTransformException.class.php 887 Bytes
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

/*
 * This file is part of the sfImageTransformPlugin package.
 * (c) 2007 Stuart Lowes <stuart.lowes@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * sfImageTransformException is thrown when an fatal error occurs while manipulating a image.
 *
 * @package   sfImageTransform
 * @subpackage exceptions
 * @author   Stuart Lowes <stuart.lowes@gmail.com>
 * @version   SVN: $Id$
 */
class sfImageTransformException extends sfException
{
  /**
   * Class constructor.
   *
   * @param string error message
   * @param int error code
   */
  public function __construct($message = null, $code = 0)
  {
    // Legacy support for 1.0
  	if (method_exists($this, 'setName'))
  	{
	    $this->setName('sfImageTransformException');
  	}

  	parent::__construct($message, $code);
  }
}