The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

22 satır
587 B

  1. # frozen_string_literal: true
  2. module Mastodon
  3. class Error < StandardError; end
  4. class NotPermittedError < Error; end
  5. class ValidationError < Error; end
  6. class HostValidationError < ValidationError; end
  7. class LengthValidationError < ValidationError; end
  8. class DimensionsValidationError < ValidationError; end
  9. class RaceConditionError < Error; end
  10. class UnexpectedResponseError < Error
  11. def initialize(response = nil)
  12. if response.respond_to? :uri
  13. super("#{response.uri} returned code #{response.code}")
  14. else
  15. super
  16. end
  17. end
  18. end
  19. end