Show / Hide Table of Contents

Class SoDuplicateException

Exception thrown when a duplicate entity has been encountered where one is not allowed. e.g. when a new list item is created with an existing name.

Inheritance
Object
SoException
SoDuplicateException
Inherited Members
SoException.LogAsException
SoException.FriendlyText
Namespace: SuperOffice.Exceptions
Assembly: SoCore.dll
Syntax
public class SoDuplicateException : SoException
Remarks

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

Constructors

SoDuplicateException(String, Boolean)

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

Declaration
public SoDuplicateException(string message, bool logAsException = false)
Parameters
Type Name Description
String message

Error message.

Boolean logAsException

Default false: will log as Trace. Set to true to log as Exception.

Remarks

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

SoDuplicateException(String, Exception, Nullable<Boolean>)

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

Declaration
public SoDuplicateException(string message, Exception innerException, Nullable<bool> logAsException)
Parameters
Type Name Description
String message

Error message.

Exception innerException

Inner exception.

Nullable<Boolean> logAsException

Default false: will log as Trace. Set to true to log as Exception. Set to null to let the inner exceptions LogAsException value rule.

Remarks

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

SoDuplicateException(String, Exception, String, Nullable<Boolean>)

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

Declaration
public SoDuplicateException(string message, Exception innerException, string friendlyText, Nullable<bool> logAsException)
Parameters
Type Name Description
String message

Error message.

Exception innerException

Inner exception.

String friendlyText

For web to fetch the exception and show nice error dialogs.

Nullable<Boolean> logAsException

Default false: will log as Trace. Set to true to log as Exception. Set to null to let the inner exceptions LogAsException value rule.

Remarks

Will be logged as Trace, not as Exception. Override this default behaviour by providing a value for the logAsException parameter.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top