lib/ably/exceptions.rb in ably-0.7.2 vs lib/ably/exceptions.rb in ably-0.7.4

- old
+ new

@@ -42,13 +42,19 @@ end # Connection Timeout accessing Realtime or REST service class ConnectionTimeoutError < ConnectionError; end + # Connection closed unexpectedly + class ConnectionClosedError < ConnectionError; end + # Invalid State Change error on a {https://github.com/gocardless/statesman Statesman State Machine} class StateChangeError < BaseAblyException; end + # The state of the object is not suitable for this operation + class IncompatibleStateForOperation < BaseAblyException; end + # A generic Ably exception taht supports a status & code. # See https://github.com/ably/ably-common/blob/master/protocol/errors.json for a list of Ably errors class Standard < BaseAblyException; end # The HTTP request has returned a 500 error @@ -63,7 +69,10 @@ # The request cannot be performed because it is insecure class InsecureRequestError < BaseAblyException; end # The token request could not be created class TokenRequestError < BaseAblyException; end + + # The message could not be delivered to the server + class MessageDeliveryError < BaseAblyException; end end end