laravel-mailchimp icon indicating copy to clipboard operation
laravel-mailchimp copied to clipboard

Catch error

Open fmendoza opened this issue 11 years ago • 2 comments

Hi, I tried to catch like this but its not working:


catch(Mailchimp_Error $e)
{
  return Response::json(array('error' => true, 'message' => $e->getMessage()), 400);
}

fmendoza avatar May 02 '14 02:05 fmendoza

@fmendoza Can you give me some more details? What is the code inside the try block. What input are you giving where you expect the error?

hugofirth avatar May 16 '14 17:05 hugofirth

I'm also interested to see how try/catch would work. please include an example in README.

hadifarnoud avatar Jul 04 '15 07:07 hadifarnoud