for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\Json\Exceptions;
use Exception;
/**
* Class JsonException
*
* @package Arcanedev\Json\Exceptions
* @author ARCANEDEV <[email protected]>
*/
class JsonException extends Exception
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* Replace message placeholders with replaces params.
* @param array $replaces
* @return static
public function replace(array $replaces = [])
foreach($replaces as $key => $value) {
$this->message = str_replace(":$key", $value, $this->message);
}
return $this;