diff options
author | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-07-11 08:19:23 +0000 |
---|---|---|
committer | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-07-11 08:19:23 +0000 |
commit | c87fd2a5a9d01664005190a621d4b2d0852acfc8 (patch) | |
tree | 44796c86fb561cd105196ef287ac746a3195a766 /packages/fcl-web/src/base/fphttp.pp | |
parent | 8004241bae48410b6a3a4bdd0c1ab4ae4f53828a (diff) | |
download | fpc-c87fd2a5a9d01664005190a621d4b2d0852acfc8.tar.gz |
* Improved exception handling. Introduced StatusCode/Text in EHTTPError, is used to set HTTP status code/text when sending the response.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@28196 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-web/src/base/fphttp.pp')
-rw-r--r-- | packages/fcl-web/src/base/fphttp.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/fcl-web/src/base/fphttp.pp b/packages/fcl-web/src/base/fphttp.pp index cd5c78eaf6..837bf8aaa0 100644 --- a/packages/fcl-web/src/base/fphttp.pp +++ b/packages/fcl-web/src/base/fphttp.pp @@ -207,7 +207,9 @@ Type Property Modules [Index : Integer]: TModuleItem Read GetModule Write SetModule;default; end; - EFPHTTPError = Class(Exception); + { EFPHTTPError } + + EFPHTTPError = Class(EHTTP); Procedure RegisterHTTPModule(ModuleClass : TCustomHTTPModuleClass; SkipStreaming : Boolean = False); Procedure RegisterHTTPModule(Const ModuleName : String; ModuleClass : TCustomHTTPModuleClass; SkipStreaming : Boolean = False); @@ -227,6 +229,7 @@ Resourcestring SErrRequestNotHandled = 'Web request was not handled by actions.'; SErrNoSessionFactoryClass = 'No session manager class available. Include iniwebsession unit and recompile.'; SErrNoSessionOutsideRequest = 'Default session not available outside handlerequest'; + Implementation {$ifdef cgidebug} @@ -248,6 +251,7 @@ begin Result:=GSM; end; + { TCustomHTTPModule } procedure TCustomHTTPModule.DoAfterInitModule(ARequest: TRequest); |