During my testing of STRIPE in a website, I built the code like this:
try { $charge = Stripe_Charge::create(array( \"amount\" => $cli
I may be late to this question, but I ran into the same issue and found this.
You just need to use "Stripe_Error" class.
use Stripe_Error;
After declaring that, I was able to catch errors successfully.