Added sock_error exception class