The action is executed although handled=true in OnBeforeAction  

  RSS

ds5787
Active Member
Joined: 2 years  ago
Posts: 9
12 February 2018 9:19  

In the ActionFilters example, there is a method 
TActionFiltersController.OnBeforeAction that raises an exception.

The comment says:

// if handled = true (or exception raised) then actual action will not be called

If the exception is raised, the action isn't executed.
But, if i replace it with 
handled := true
the action is executed.
Why?


ReplyQuoteLikeReport
Daniele Teti
Trusted Member
Joined: 2 years  ago
Posts: 53
12 February 2018 9:37  

If this is the behaviour, and you are using 3.0 RC12, it is a bug. Please, fill an issue on github.

Thank you

 

DT

Daniele Teti
CEO & CTO @ bit Time Professionals
Embarcadero MVP
Books Author


ReplyQuoteLikeReport
ds5787
Active Member
Joined: 2 years  ago
Posts: 9
12 February 2018 15:48  

I downloaded the zip package from github and i'm trying to install it on DXE10 Seattle Architect (Version 23.x.x.x).
There is an error:
[dcc32 Error] DMVC.Expert.Forms.NewProjectWizard.pas(89): E2003 Undeclared identifier: 'DMVCFRAMEWORK_VERSION'

In the release notes of the version 2.1.1 hydrogen on github, i read:
 - The current version is available in constant DMVCFRAMEWORK_VERSION defined in MVCFramework.Commons.pas

If i open this file, the definition there isn't. 


ReplyQuoteLikeReport
  
Working

Please Login or Register