Tadashi Okoshi
slash****@users*****
2006年 3月 28日 (火) 18:15:23 JST
Index: affelio/lib/Affelio/SNS/Handshaker_c.pm
diff -u affelio/lib/Affelio/SNS/Handshaker_c.pm:1.18 affelio/lib/Affelio/SNS/Handshaker_c.pm:1.19
--- affelio/lib/Affelio/SNS/Handshaker_c.pm:1.18 Tue Mar 7 23:39:11 2006
+++ affelio/lib/Affelio/SNS/Handshaker_c.pm Tue Mar 28 18:15:23 2006
@@ -14,7 +14,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-# $Id: Handshaker_c.pm,v 1.18 2006/03/07 14:39:11 slash5234 Exp $
+# $Id: Handshaker_c.pm,v 1.19 2006/03/28 09:15:23 slash5234 Exp $
package Affelio::SNS::Handshaker_c;
{
@@ -34,6 +34,7 @@
use Affelio::exception::InvalidInputException;
use Affelio::exception::IOException;
use Affelio::exception::NetworkException;
+ use Affelio::exception::CommunicationException;
use Exporter;
@Affelio::SNS::Handshaker_c::ISA= "Exporter";
@@ -103,7 +104,7 @@
throw Affelio::exception::NetworkException($@);
}
if($res->{flerror} ne "0"){
- throw Affelio::exception::NetworkException("Flerror > 0: $res->{message}");
+ throw Affelio::exception::CommunicationException("Flerror > 0: $res->{message}");
}
debug_print("send_HandShake: OK:[$res->{flerror}] [$res->{message}]");
@@ -112,6 +113,9 @@
}
+
+
+
#################################################################
# reply_HandShake(dest_url => $dest_uri,
# timestamp => $timestamp,
@@ -164,7 +168,7 @@
throw Affelio::exception::NetworkException($@);
}
if($res->{flerror} ne "0"){
- throw Affelio::exception::NetworkException($res->{message});
+ throw Affelio::exception::CommunicationException($res->{message});
}
debug_print("reply_HandShake: [$res->{flerror}] [$res->{message}]");
@@ -214,7 +218,7 @@
throw Affelio::exception::NetworkException($@);
}
if($res->{flerror} ne "0"){
- throw Affelio::exception::NetworkException("XML-RPC Error: " . $res->{message});
+ throw Affelio::exception::CommunicationException("XML-RPC Error: " . $res->{message});
}
debug_print("C::get_news: OK: [$res->{flerror}] [$res->{message}]");
@@ -302,7 +306,7 @@
throw Affelio::exception::NetworkException($@);
}
if($res->{flerror} ne "0"){
- throw Affelio::exception::NetworkException("XML-RPC Error: " . $res->{message});
+ throw Affelio::exception::CommunicationException("XML-RPC Error: " . $res->{message});
}
debug_print("C::post_mesg: OK: [$res->{flerror}] [$res->{message}]");
@@ -348,7 +352,7 @@
throw Affelio::exception::NetworkException($@);
}
if($res->{flerror} ne "0"){
- throw Affelio::exception::NetworkException($res->{message});
+ throw Affelio::exception::CommunicationException($res->{message});
}
debug_print("C::get_F2list: OK: [$res->{flerror}] [$res->{message}]");