for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DansMaCulotte\MondialRelay\Exceptions;
class Exception extends \Exception
{
/**
* @param $key
* @return Exception
*/
public static function invalidCredentials($key)
return new self("You must provide a ${key} to authenticate with MondialRelay Web Services");
}
* @param $code
public static function requestError($code)
return new self("Request returned error code: ${code}");
public static function noPickupPoint($code)
return new self("No pickup point found with code: ${code}");