class_EncryptInvalidLengthException.php

Go to the documentation of this file.
00001 <?php
00024 class EncryptInvalidLengthException extends FrameworkException {
00032         public function __construct(Filterable $filterInstance, $code) {
00033                 // Get length
00034                 $length = $filterInstance->getConfigInstance()->readConfig('captcha_string_length');
00035 
00036                 // Construct message
00037                 $message = sprintf("[%s:%d] Encrypt string has an invalid length. Valid: %d",
00038                         $filterInstance->__toString(),
00039                         $this->getLine(),
00040                         $length
00041                 );
00042 
00043                 // Set extra data
00044                 $this->setExtraData($filterInstance->__toString().":".$length);
00045 
00046                 // Call parent exception constructor
00047                 parent::__construct($message, $code);
00048         }
00049 }
00050 
00051 // [EOF]
00052 ?>

Generated on Mon Dec 8 01:06:44 2008 for Ship-Simulator by  doxygen 1.5.6