Exception: Pusher::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/pusher.rb

Overview

All Pusher errors descend from this class so you can easily rescue Pusher errors

Examples:

begin
  Pusher['a_channel'].trigger!('an_event', {:some => 'data'})
rescue Pusher::Error => e
  # Do something on error
end