Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895165
PhabricatorApplicationTransactionValidationException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
930 B
Referenced Files
None
Subscribers
None
PhabricatorApplicationTransactionValidationException.php
View Options
<?php
final
class
PhabricatorApplicationTransactionValidationException
extends
Exception
{
private
$errors
;
public
function
__construct
(
array
$errors
)
{
assert_instances_of
(
$errors
,
'PhabricatorApplicationTransactionValidationError'
)
;
$this
->
errors
=
$errors
;
$message
=
array
(
)
;
$message
[
]
=
pht
(
'Validation errors:'
)
;
foreach
(
$this
->
errors
as
$error
)
{
$message
[
]
=
' - '
.
$error
->
getMessage
(
)
;
}
parent
::
__construct
(
implode
(
"\n"
,
$message
)
)
;
}
public
function
getErrors
(
)
{
return
$this
->
errors
;
}
public
function
getErrorMessages
(
)
{
return
mpull
(
$this
->
errors
,
'getMessage'
)
;
}
public
function
getShortMessage
(
$type
)
{
foreach
(
$this
->
errors
as
$error
)
{
if
(
$error
->
getType
(
)
===
$type
)
{
if
(
$error
->
getShortMessage
(
)
!==
null
)
{
return
$error
->
getShortMessage
(
)
;
}
}
}
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:01 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128719
Default Alt Text
PhabricatorApplicationTransactionValidationException.php (930 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment