From ab09f3e4297dc9a9dbdc190ad80a9185b6eb4a1f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Aug 2008 03:34:52 +0000 Subject: * transcode_data.h (TRANSCODE_ERROR): common transcode failure exception, would be changed later. * enc/trans/japanese.c (UNSUPPORTED_MODE): unsupported mode transition exception. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transcode.c') diff --git a/transcode.c b/transcode.c index 38cd155f3..629da2b76 100644 --- a/transcode.c +++ b/transcode.c @@ -274,7 +274,7 @@ transcode_loop(const unsigned char **in_pos, unsigned char **out_pos, output_replacement_character(&out_p, to_encoding); continue; } - rb_raise(rb_eRuntimeError /*change exception*/, "invalid byte sequence"); + rb_raise(TRANSCODE_ERROR, "invalid byte sequence"); continue; undef: /* valid character in from encoding @@ -291,7 +291,7 @@ transcode_loop(const unsigned char **in_pos, unsigned char **out_pos, output_replacement_character(&out_p, to_encoding); continue; } - rb_raise(rb_eRuntimeError /*@@@change exception*/, "conversion undefined for byte sequence (maybe invalid byte sequence)"); + rb_raise(TRANSCODE_ERROR, "conversion undefined for byte sequence (maybe invalid byte sequence)"); continue; } /* cleanup */ -- cgit