for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Silk\Exception;
use WP_Error;
class WP_ErrorException extends \RuntimeException
{
/**
* WP_ErrorException Constructor.
*
* @param WP_Error $error The error to set the message from
*/
public function __construct(WP_Error $error)
$this->message = $error->get_error_message();
}