Browse Source

+ introduce a base type for RTTI related exceptions

git-svn-id: trunk@41834 -
svenbarth 6 years ago
parent
commit
69f54b31e7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      packages/rtl-objpas/src/inc/rtti.pp

+ 4 - 3
packages/rtl-objpas/src/inc/rtti.pp

@@ -481,9 +481,10 @@ type
     property DeclaringUnitName: string read GetDeclaringUnitName;
     property DeclaringUnitName: string read GetDeclaringUnitName;
   end;
   end;
 
 
-  EInsufficientRtti = class(Exception);
-  EInvocationError = class(Exception);
-  ENonPublicType = class(Exception);
+  ERtti = class(Exception);
+  EInsufficientRtti = class(ERtti);
+  EInvocationError = class(ERtti);
+  ENonPublicType = class(ERtti);
 
 
   TFunctionCallParameter = record
   TFunctionCallParameter = record
     ValueRef: Pointer;
     ValueRef: Pointer;