Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1549708
RestException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
RestException.php
View Options
<?php
/**
* An exception talking to the Twilio API. This is thrown whenever the Twilio
* API returns a 400 or 500-level exception.
*
* :param int $status: the HTTP status for the exception
* :param string $message: a human-readable error message for the exception
* :param int $code: a Twilio-specific error code for the exception
* :param string $info: a link to more information
*/
class
Services_Twilio_RestException
extends
Exception
{
/**
* The HTTP status for the exception.
*/
protected
$status
;
/**
* A URL to get more information about the error. This is not always
* available
*/
protected
$info
;
public
function
__construct
(
$status
,
$message
,
$code
=
0
,
$info
=
''
)
{
$this
->
status
=
$status
;
$this
->
info
=
$info
;
parent
::
__construct
(
$message
,
$code
);
}
/**
* Get the HTTP status code
*/
public
function
getStatus
()
{
return
$this
->
status
;
}
/**
* Get a link to more information
*/
public
function
getInfo
()
{
return
$this
->
info
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 15, 2:51 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
358421
Default Alt Text
RestException.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment