Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85843381
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
Wed, Oct 2, 11:59
Size
957 B
Mime Type
text/x-php
Expires
Fri, Oct 4, 11:59 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21281492
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