PHP Classes

File: src/PHPVideoToolkit/FfmpegProcessException.php

Recommend this page to a friend!
  Classes of Oliver Lillie   PHP Video Toolkit   src/PHPVideoToolkit/FfmpegProcessException.php   Download  
File: src/PHPVideoToolkit/FfmpegProcessException.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Video Toolkit
Manipulate and convert videos with ffmpeg program
Author: By
Last change: updated documentation and added a new exception. updated exceptions and argument checks where appropriate.
fixed small issue of whitespace
updated version in source
Date: 1 year ago
Size: 1,115 bytes
 

Contents

Class file image Download
<?php
   
   
/**
     * This file is part of the PHP Video Toolkit v2 package.
     *
     * @author Oliver Lillie (aka buggedcom) <publicmail@buggedcom.co.uk>
     * @license Dual licensed under MIT and GPLv2
     * @copyright Copyright (c) 2008-2014 Oliver Lillie <http://www.buggedcom.co.uk>
     * @package PHPVideoToolkit V2
     * @version 2.1.7-beta
     * @uses ffmpeg http://ffmpeg.sourceforge.net/
     */
    
   
namespace PHPVideoToolkit;
    
    class
FfmpegProcessException extends Exception
   
{
        protected
$process;
        protected
$exec;
       
        public function
__construct($message = null, ExceBuffer $exec=null, FfmpegProcess $process=null, $code = 0, Exception $previous=null)
        {
           
parent::__construct($message, $code, $previous);
           
           
$this->process = $process;
           
$this->exec = $exec;
        }
       
        final public function
getFfmpegProcess()
        {
            return
$this->process;
        }
       
        final public function &
getExecBuffer()
        {
            return
$this->exec;
        }
    }