Permalink
Browse files

Use StandardError where applicable

  • Loading branch information...
1 parent d4b3cd7 commit db5d0baa2b819de5371f05645215265ce09c6f6f @arya committed Jul 13, 2009
View
8 lib/pandemic/client_side/cluster_connection.rb
@@ -1,10 +1,10 @@
module Pandemic
module ClientSide
class ClusterConnection
- class NotEnoughConnectionsTimeout < Exception; end
- class NoNodesAvailable < Exception; end
- class LostConnectionToNode < Exception; end
- class NodeTimedOut < Exception; end
+ class NotEnoughConnectionsTimeout < StandardError; end
+ class NoNodesAvailable < StandardError; end
+ class LostConnectionToNode < StandardError; end
+ class NodeTimedOut < StandardError; end
include Util
def initialize
View
4 lib/pandemic/connection_pool.rb
@@ -1,7 +1,7 @@
module Pandemic
class ConnectionPool
- class TimedOutWaitingForConnectionException < Exception; end
- class CreateConnectionUndefinedException < Exception; end
+ class TimedOutWaitingForConnectionException < StandardError; end
+ class CreateConnectionUndefinedException < StandardError; end
include Util
def initialize(options = {})
@connected = false
View
2 lib/pandemic/server_side/peer.rb
@@ -1,7 +1,7 @@
module Pandemic
module ServerSide
class Peer
- class PeerUnavailableException < Exception; end
+ class PeerUnavailableException < StandardError; end
include Util
attr_reader :host, :port

0 comments on commit db5d0ba

Please sign in to comment.