Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66935194
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, Jun 18, 23:28
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Jun 20, 23:28 (2 d)
Engine
blob
Format
Raw Data
Handle
18318722
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
{
public
function
__construct
(
string
$message
=
""
,
int
$code
=
0
,
Throwable
$previous
=
null
)
{
error_log
(
"tequila-php-client Exception: "
.
$message
);
parent
::
__construct
(
$message
,
$code
,
$previous
);
}
public
function
__toString
()
{
return
__CLASS__
.
": [{$this->code}]: {$this->message}
\n
"
;
}
}
Event Timeline
Log In to Comment