Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112924872
exception.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 13, 19:08
Size
1 KB
Mime Type
text/x-php
Expires
Thu, May 15, 19:08 (2 d)
Engine
blob
Format
Raw Data
Handle
26150520
Attached To
R6831 Tequila PHP client
exception.php
View Options
<?php
// Copyright (C) 2021 Doran Kayoumi
// Copyright (C) 2021 Liip SA <https://www.liip.ch>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>
class
TequilaException
extends
\Exception
{
const
DEBUG
=
false
;
public
function
__construct
(
string
$message
=
""
,
int
$code
=
0
,
Throwable
$previous
=
null
)
{
// @codeCoverageIgnoreStart
if
(
self
::
DEBUG
)
{
error_log
(
"tequila-php-client Exception: "
.
$message
);
}
// @codeCoverageIgnoreEnd
parent
::
__construct
(
$message
,
$code
,
$previous
);
}
public
function
__toString
()
{
return
__CLASS__
.
": [{$this->code}]: {$this->message}
\n
"
;
}
}
Event Timeline
Log In to Comment