Class SoMissingDatabaseContextException
Implements
Inherited Members
Namespace: SuperOffice.Exceptions
Assembly: SoCore.dll
Syntax
public class SoMissingDatabaseContextException : SoException, ISerializable
Constructors
SoMissingDatabaseContextException(string, bool)
Exception thrown when a valid database context is missing
Declaration
public SoMissingDatabaseContextException(string message, bool logAsException = true)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Reason for missing the exception |
| bool | logAsException | Should the exception be logged as an exception with ILogger or simply as a trace message. Default is True. |
SoMissingDatabaseContextException(string, Exception, bool?)
Exception thrown when a valid database context is missing
Declaration
public SoMissingDatabaseContextException(string message, Exception innerException, bool? logAsException = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | Reason for missing the exception |
| Exception | innerException | Inner exception causing the exception to be raised |
| bool? | logAsException | Should the exception be logged as an exception with ILogger or simply as a trace message. Default is True. |