How to throw an error from server side and catch it from client side

the problem in my case i have a throw new Meteor.Error

only with

if(Meteor.isServer)

i can’t throw the error from the server to the client and the validated method all the time return undefined in the error callback

but in the terminal it throws the error and restart the meteor


``` and the stripe methods or

const Stripe = require('stripe');
const stripe = Stripe("sk_test_pO*******MUDXjlF8v");

wont work only with

`if(Meteor.isServer)` 
How to throw an error from server side and catch it from client side 
Thanks