for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Audiens\DoubleclickClient\exceptions;
use Audiens\DoubleclickClient\entity\ApiResponse;
/**
* Class ReportException
*/
class ReportException extends \Exception
{
* @param ApiResponse $repositoryResponse
*
* @return self
public static function failed(ApiResponse $repositoryResponse)
return new self('Failed call: '.$repositoryResponse->getError());
}
/**+
* @param $missingIndex
public static function missingIndex($missingIndex)
return new self('Invalid reposnse missing: '.$missingIndex);
public static function validation($message)
return new self($message);