Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5977786
ExceptionBase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
552 B
Referenced Files
None
Subscribers
None
ExceptionBase.php
View Options
<?php
namespace
MediaWiki\Extension\AbuseFilter\Parser\Exception
;
use
Exception
;
abstract
class
ExceptionBase
extends
Exception
{
/**
* Serialize data for edit stash
* @return array
*/
public
function
toArray
():
array
{
return
[
'class'
=>
static
::
class
,
'message'
=>
$this
->
getMessage
(),
];
}
/**
* Deserialize data from edit stash
* @param array $value
* @return static
*/
public
static
function
fromArray
(
array
$value
)
{
[
'class'
=>
$cls
,
'message'
=>
$message
]
=
$value
;
return
new
$cls
(
$message
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:05 (3 d, 5 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c9/a4/d303a738ed5370e3462ef9c96297
Default Alt Text
ExceptionBase.php (552 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment