Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw17598.pp
Size: Mime:
{ %NORUN }

{$mode macpas}
{$extendedsyntax off}
{$modeswitch exceptions+}
{$modeswitch class+}

program tw17598;

  uses
    sysutils;

  type
    EMyException =
      class( Exception)
        constructor Create( theMessage: Ansistring);
      end;

constructor EMyException.Create( theMessage: Ansistring);
    begin
      inherited Create( theMessage)
    end;

begin
  try
    raise EMyException.Create( 'my exception raised')
  except
    ShowException( ExceptObject, ExceptAddr)
  end
end.