Revision: 46
http://sourceforge.net/p/beeframework/code/46
Author: m_plomer
Date: 2013-07-30 15:26:33 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
- new exception subclass ProcExecException
Added Paths:
-----------
trunk/framework/Bee/Exceptions/ProcExecException.php
Added: trunk/framework/Bee/Exceptions/ProcExecException.php
===================================================================
--- trunk/framework/Bee/Exceptions/ProcExecException.php (rev 0)
+++ trunk/framework/Bee/Exceptions/ProcExecException.php 2013-07-30 15:26:33 UTC (rev 46)
@@ -0,0 +1,62 @@
+<?php
+namespace Bee\Tools;
+/*
+ * Copyright 2008-2010 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * User: mp
+ * Date: 30.07.13
+ * Time: 17:21
+ *
+ * todo: move this to Bee Framework
+ */
+
+class ProcExecException extends \Bee_Exceptions_Base {
+
+ private $returnValue;
+
+ private $stdOut;
+
+ private $stdErr;
+
+ function __construct($message, $returnValue, $stdOut, $stdErr) {
+ parent::__construct($message);
+ $this->returnValue = $returnValue;
+ $this->stdOut = $stdOut;
+ $this->stdErr = $stdErr;
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getReturnValue() {
+ return $this->returnValue;
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getStdErr() {
+ return $this->stdErr;
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getStdOut() {
+ return $this->stdOut;
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|