diff --git a/package/ember-sockets.js b/package/ember-sockets.js
index <HASH>..<HASH> 100644
--- a/package/ember-sockets.js
+++ b/package/ember-sockets.js
@@ -67,10 +67,7 @@
                 server = '%@://%@:%@/%@'.fmt(scheme, host, port, path),
                 socket = $io.connect(server, options);
 
-            socket.on('error', function socketError() {
-                // Throw an exception if an error occurs.
-                throw 'Unable to make a connection to the Socket.io server!';
-            });
+            socket.on('error', this.error);
 
             // Store a reference to the socket.
             this.set('socket', socket);
@@ -81,6 +78,11 @@
             socket.on('connect', this._listen.bind(this));
 
         },
+        
+        error: function(){
+            // Throw an exception if an error occurs.
+            throw 'Unable to make a connection to the Socket.io server!';
+        },
 
         /**
          * Responsible for emitting an event to the waiting Socket.io server.
Updated ember-socket.js with error function.

With a function for error, this allows  you to define your own callback by overriding the error function when extending this class. That way, you can handle the exceptions yourself.