Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content-20241001222009
/
plugins
/
mailpoet
/
vendor-prefixed
/
nesbot
/
carbon
/
src
/
Carbon
/
Exceptions
:
ParseErrorException.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace MailPoetVendor\Carbon\Exceptions; if (!defined('ABSPATH')) exit; use Exception; use InvalidArgumentException as BaseInvalidArgumentException; class ParseErrorException extends BaseInvalidArgumentException implements InvalidArgumentException { public function __construct($expected, $actual, $help = '', $code = 0, Exception $previous = null) { $actual = $actual === '' ? 'data is missing' : "get '{$actual}'"; parent::__construct(\trim("Format expected {$expected} but {$actual}\n{$help}"), $code, $previous); } }