Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93089679
DifferentialExceptionMail.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, Nov 26, 03:29
Size
955 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 03:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22566684
Attached To
rPH Phabricator
DifferentialExceptionMail.php
View Options
<?php
final
class
DifferentialExceptionMail
extends
DifferentialMail
{
public
function
__construct
(
DifferentialRevision
$revision
,
Exception
$exception
,
$original_body
)
{
$this
->
revision
=
$revision
;
$this
->
exception
=
$exception
;
$this
->
originalBody
=
$original_body
;
}
protected
function
renderBody
()
{
// Never called since buildBody() is overridden.
}
protected
function
renderSubject
()
{
return
"Exception: unable to process your mail request"
;
}
protected
function
renderVaryPrefix
()
{
return
''
;
}
protected
function
buildBody
()
{
$exception
=
$this
->
exception
;
$original_body
=
$this
->
originalBody
;
$message
=
$exception
->
getMessage
();
return
<<<EOBODY
Your request failed because an exception was encoutered while processing it:
EXCEPTION: {$message}
-- Original Body -------------------------------------------------------------
{$original_body}
EOBODY;
}
}
Event Timeline
Log In to Comment