title: Create Error object for Stripe::Error (Ruby on rails)
body: <p>I am able to create standard errors as below...</p>
  
  <pre><code>StandardError.new("No such customer: invalid-id")
  </code></pre>
  
  <p>However, I would like to know how to create specific errors, specifically Stripe errors...</p>
  
  <p><a href="https://stripe.com/docs/api/errors/handling" rel="nofollow noreferrer">https://stripe.com/docs/api/errors/handling</a>
  <a href="https://github.com/stripe/stripe-ruby/blob/382ae0b45d848304f7c1739696f33458c86bee4f/lib/stripe/errors.rb#L99" rel="nofollow noreferrer">https://github.com/stripe/stripe-ruby/blob/382ae0b45d848304f7c1739696f33458c86bee4f/lib/stripe/errors.rb#L99</a></p>
  
  <pre><code>Stripe::RateLimitError
  Stripe::InvalidRequestError
  Stripe::AuthenticationError
  Stripe::InvalidRequestError
  Stripe::StripeError
  </code></pre>
  
  <p>What is the best way to create these errors?  Which I use to pass to the my mock Api library.  I found this...</p>
  
  <p><a href="https://github.com/stripe/stripe-ruby/blob/master/test/stripe/errors_test.rb" rel="nofollow noreferrer">https://github.com/stripe/stripe-ruby/blob/master/test/stripe/errors_test.rb</a></p>
  
  <p>I have tried...
  <code>Stripe::InvalidRequestError.new('this is a test')</code>
  , but I get a ArgumentError (wrong number of arguments (given 1, expected 2)).  </p>
  
  <p>What is the required second argument?</p>