1<?php 2namespace go\core\exception; 3 4/** 5 * Throw when an operation was forbidden. 6 * 7 * @copyright (c) 2014, Intermesh BV http://www.intermesh.nl 8 * @author Merijn Schering <mschering@intermesh.nl> 9 * @license http://www.gnu.org/licenses/agpl-3.0.html AGPLv3 10 */ 11class TLSException extends \Exception 12{ 13 public function __construct($message = "", $code = 0, $previous = null) { 14 15 if(empty($message)) { 16 $message = "Could not enable TLS encryption"; 17 } 18 19 parent::__construct($message, $code, $previous); 20 } 21} 22