public static function fire($code)
	{
		if ($code == 0) {
			return new LogicException('Error code 0 means upload was successful');
		}

		if ( ! in_array($code, array_keys(self::$messages))) {
			return new self(self::$default, self::UPPLOAD_ERR_DEFAULT);
		}

		return new self(self::$messages[$code], $code);
	}
public static function fire($code)
	{
		if ($code == 0) {
			return new LogicException('Error code 0 means upload was successful');
		}

		if ( ! in_array($code, array_keys(self::$messages))) {
			return new self(self::$default, self::UPPLOAD_ERR_DEFAULT);
		}

		return new self(self::$messages[$code], $code);
	}
public static function fire ( $ code ) { if ( $ code == 0 ) { return new LogicException ( 'Error code 0 means upload was successful' ) ; } if ( ! in_array ( $ code , array_keys ( self :: $ messages ) ) ) { return new self ( self :: $ default , self :: UPPLOAD_ERR_DEFAULT ) ; } return new self ( self :: $ messages [ $ code ] , $ code ) ; }
Throws new FileUploadException with message and code based on passed code
@param integer $code
@return FileUploadException or LogicException if code 0
Throws new FileUploadException with message and code based on passed code