Prism(net)이 아닌 Delphi 네이티브를 요청합니다.
이것이 제 코드입니다:
raise Exception.Create('some test');
선언되지 않은 식별자 "예외".
예외를 던지거나 발생시키려면 어떻게 해야 하나요?
데이터베이스에구성원을 /dev/raw/raw1 부서입니까 시스티우스 추가해야 합니다.
난 또 잘 살릴 수 있고, 형식의 메사게스 너희에의 제안하세요 추적합니까 범주입니다 제꿈의 예외:
Type TMyException=class
public
class procedure RaiseError1(param:integer);
class procedure RaiseError2(param1,param2:integer);
class procedure RaiseError3(param:string);
end;
implementation
class procedure TMyException.RaiseError1(param:integer);
begin
raise Exception.create(format('This is an exception with param %d',[param]));
end;
//declare here other RaiseErrorX
이 간단한 방법을 사용할 수 있다.
TMyException.RaiseError1(123);