for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* \AppserverIo\Lang\StrngIndexOutOfBoundsException
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Tim Wagner <[email protected]>
* @copyright 2015 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/appserver-io/lang
* @link http://www.appserver.io
*/
namespace AppserverIo\Lang;
* Thrown to indicate that the application has attempted to convert
* a string to one of the numeric types, but that the string does not
* have the appropriate format.
class StrngIndexOutOfBoundsException extends \Exception
{
* Constructs a new <code>StrngIndexOutOfBoundsException</code>
* class with an argument indicating the illegal index.
* @param integer $index The illegal index
* @return void
* @throws StrngIndexOutOfBoundsException
public static function forIndex($index)
throw new StrngIndexOutOfBoundsException('String index out of range: ' . $index);
}