-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBadGateway.php
46 lines (35 loc) · 1.45 KB
/
BadGateway.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/*
START LICENSE AND COPYRIGHT
This file is part of ZfExtended library
Copyright (c) 2013 - 2021 Marc Mittag; MittagQI - Quality Informatics; All rights reserved.
Contact: http://www.MittagQI.com/ / service (ATT) MittagQI.com
This file may be used under the terms of the GNU LESSER GENERAL PUBLIC LICENSE version 3
as published by the Free Software Foundation and appearing in the file lgpl3-license.txt
included in the packaging of this file. Please review the following information
to ensure the GNU LESSER GENERAL PUBLIC LICENSE version 3.0 requirements will be met:
https://www.gnu.org/licenses/lgpl-3.0.txt
@copyright Marc Mittag, MittagQI - Quality Informatics
@author MittagQI - Quality Informatics
@license GNU LESSER GENERAL PUBLIC LICENSE version 3
https://www.gnu.org/licenses/lgpl-3.0.txt
END LICENSE AND COPYRIGHT
*/
/**
* Bad Gateway means: Our System is OK, but the requested third party systems gives an error.
* @deprecated
*/
class ZfExtended_BadGateway extends ZfExtended_Exception
{
protected $defaultCode = 502;
protected $defaultMessage = 'Das angefragte Zielsystem antwortete mit einem Fehler. Fehlermeldung des Zielsystems:';
protected $defaultMessageTranslate = true;
public function __toString()
{
$msg = $this->message;
$this->message .= "\n" . print_r($this->errors, 1);
$res = parent::__toString();
$this->message = $msg;
return $res;
}
}