Gets or sets the value that specifies whether any exceptions should be caught by EAUploadModuleduring the request processing.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.1.0

Syntax

C#
public bool ThrowErrorsImmediately { get; set; }
Visual Basic (Declaration)
Public Property ThrowErrorsImmediately As Boolean

Field Value

Type: System..::.Boolean
true if exceptions should be thrown immediately; otherwise, false. Default value is true

Remarks

This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Exceptions ... ThrowErrorsImmediately="" ... >).

The following table describes how the logic of exceptions processing during request reading depends on ProcessRequestOnError and ThrowErrorsImmediately properties:
ProcessRequestOnErrorThrowErrorsImmediatelyDefined logic
falsetrue
  1. Exception is written to LastError property.
  2. Connection is closed (Session is not terminated).
  3. If UploadEnvironment.WriteToSystemEventLog property or WriteToSystemEventLog parameter is true then error is written to System Event log.
  4. EAUploadModule.UploadError event is fired.
  5. All specified redirection is ignored.
  6. EAUploadException is thrown.
falsefalse
  1. Exception is written to LastError property.
  2. Connection is closed (Session is not terminated).
  3. If UploadEnvironment.WriteToSystemEventLog property or WriteToSystemEventLog parameter is true then error is written to System Event log.
  4. EAUploadModule.UploadError event is fired.
  5. All specified redirection is ignored.
  6. EAUploadException is not thrown.
truetrue
  1. Exception is written to LastError property.
  2. Request is read to end.
  3. If UploadEnvironment.WriteToSystemEventLog property or WriteToSystemEventLog parameter is true then error is written to System Event log.
  4. EAUploadModule.UploadError event is fired.
  5. Client is redirected to a custom error page if it is defined; otherwise point 6.
  6. EAUploadException is thrown.
truefalse
  1. Exception is written to LastError property.
  2. Request is read to end.
  3. If UploadEnvironment.WriteToSystemEventLog property or WriteToSystemEventLog parameter is true then error is written to System Event log.
  4. EAUploadModule.UploadError event is fired.
  5. Client is redirected to a custom error page if it is defined; otherwise no action.
  6. EAUploadException is not thrown.


Note:If you want to change this property at the runtime, you can define its at the Initializing stage or at the Uploading stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information). Also if you have change this property for the whole of EAUpload component (EAUploadModule..::.CommonEnvironment property), then new value will take effect for the all processing and new uploads.

Examples

You can find an example in the description of UploadEnvironment class.

See Also