异常类怎么使用(50分)

N

nettidy

Unregistered / Unconfirmed
GUEST, unregistred user!
我写dll时,定义一个异常类
type Error = class(Exception);
....
//过程中使用
procedure iniStype ;
var
ltype : string;
begin
ltype :=1;
if ltype = 1 then
raise Error.create('类型不对!');
end;
//==================
请问上面那块有问题,为什么抛出的异常是一串英文。
 
project1 raised……什么的。你看不懂?
 
顶部