Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch error #17

Open
fmendoza opened this issue May 2, 2014 · 2 comments
Open

Catch error #17

fmendoza opened this issue May 2, 2014 · 2 comments

Comments

@fmendoza
Copy link

fmendoza commented May 2, 2014

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);
}
@hugofirth
Copy link
Owner

@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?

@hadifarnoud
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants