C# Class Dev2.Studio.Factory.ExceptionFactory

Factory used to create a wrapper around exceptions
显示文件 Open project: Warewolf-ESB/Warewolf

Public Properties

Property Type Description
GetUniqueOutputPath string>.Func

Public Methods

Method Description
Create ( Exception exception, bool isCritical = false ) : ExceptionUiModel

Creates a UI wrapper the specified exception (recursively).

CreateStringValue ( Exception exception, StringBuilder builder = null, bool critical = false ) : StringBuilder

Creates the string value (recursively).

CreateViewModel ( Exception e, IEnvironmentModel environmentModel, ErrorSeverity isCritical = ErrorSeverity.Default ) : IExceptionViewModel

Creates the exception view model.

Method Details

Create() public static method

Creates a UI wrapper the specified exception (recursively).
public static Create ( Exception exception, bool isCritical = false ) : ExceptionUiModel
exception System.Exception The exception.
isCritical bool Will append the critical error text to the message if true
return Dev2.Studio.Model.ExceptionUiModel

CreateStringValue() public static method

Creates the string value (recursively).
public static CreateStringValue ( Exception exception, StringBuilder builder = null, bool critical = false ) : StringBuilder
exception System.Exception The exception.
builder StringBuilder The builder to use - null if not recursive.
critical bool
return StringBuilder

CreateViewModel() public static method

Creates the exception view model.
public static CreateViewModel ( Exception e, IEnvironmentModel environmentModel, ErrorSeverity isCritical = ErrorSeverity.Default ) : IExceptionViewModel
e System.Exception The exception for this viewmodel.
environmentModel IEnvironmentModel The environment model.
isCritical ErrorSeverity The severity of the error.
return IExceptionViewModel

Property Details

GetUniqueOutputPath public_oe static_oe property

public static Func GetUniqueOutputPath
return string>.Func