This repository has been archived by the owner on May 8, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.1' of github.com:OPL/Open-Power-Template into 2.1
- Loading branch information
Showing
3 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,51 @@ | |||
<?php | |||
/* | |||
* OPEN POWER LIBS <http://www.invenzzia.org> | |||
* | |||
* This file is subject to the new BSD license that is bundled | |||
* with this package in the file LICENSE. It is also available through | |||
* WWW at this URL: <http://www.invenzzia.org/license/new-bsd> | |||
* | |||
* Copyright (c) Invenzzia Group <http://www.invenzzia.org> | |||
* and other contributors. See website for details. | |||
* | |||
*/ | |||
|
|||
/** | |||
* The class for output system errors. | |||
* | |||
* @author Tomasz Jędrzejewski | |||
* @copyright Invenzzia Group <http://www.invenzzia.org/> and contributors. | |||
* @license http://www.invenzzia.org/license/new-bsd New BSD License | |||
*/ | |||
class Opt_Output_Exception extends Opt_Exception | |||
{ | |||
/** | |||
* The output name. | |||
* @var string | |||
*/ | |||
private $_outputName; | |||
|
|||
/** | |||
* Creates a new output exception. The output system should specify | |||
* its name in the second argument. | |||
* | |||
* @param string $message The error message. | |||
* @param string $output The name of the output system. | |||
*/ | |||
public function __construct($message, $output) | |||
{ | |||
$this->message = (string)$message; | |||
$this->_outputName = (string)$output; | |||
} // end __construct(); | |||
|
|||
/** | |||
* Returns the name of the output that caused the exception. | |||
* | |||
* @return string | |||
*/ | |||
public function getOutputName() | |||
{ | |||
return $this->_outputName; | |||
} // end getOutputName(); | |||
} // end Opt_Output_Exception; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters