lib/ably/exceptions.rb in ably-0.8.8 vs lib/ably/exceptions.rb in ably-0.8.9

- old
+ new

@@ -30,10 +30,19 @@ end # An invalid request was received by Ably class InvalidRequest < BaseAblyException; end + # Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided + class UnauthorizedRequest < BaseAblyException; end + + # The request was a valid request, but Ably is refusing to respond to it + class ForbiddenRequest < BaseAblyException; end + + # The requested resource could not be found but may be available again in the future + class ResourceMissing < BaseAblyException; end + # Ably Protocol message received that is invalid class ProtocolError < BaseAblyException; end # Encryption or Decryption failure class CipherError < BaseAblyException; end @@ -90,10 +99,10 @@ class InsecureRequest < BaseAblyException; end # The token request could not be created class TokenRequestFailed < BaseAblyException; end - # The token has expired + # The token has expired, 40140..40149 class TokenExpired < BaseAblyException; end # The message could not be delivered to the server class MessageDeliveryFailed < BaseAblyException; end