Class CoreException
Simplic core exception, should be used when throwing an expected/unexpected exception
Inheritance
Implements
Inherited Members
Namespace: Simplic
Assembly: Simplic.CoreLib.dll
Syntax
[Serializable]
public class CoreException : Exception, ISerializable, _Exception
Constructors
| Improve this Doc View SourceCoreException()
Initialize exception instance
Declaration
public CoreException()
CoreException(String, String, ExceptionType, Exception, Func<String>[])
Initialize exception instance
Declaration
public CoreException(string code, string id, ExceptionType type, Exception innerException, params Func<string>[] parameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | Unique error code |
System.String | id | Unique exception id |
ExceptionType | type | Exception type |
System.Exception | innerException | Inner exception id |
System.Func<System.String>[] | parameter | Additional parameter for the exception message. Parameters are handled as function, to minimize the possibility of passing parameters that causes an exception too. |
CoreException(String, String, ExceptionType, Func<String>[])
Initialize exception instance
Declaration
public CoreException(string code, string id, ExceptionType type, params Func<string>[] parameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | Unique error code |
System.String | id | Unique exception id |
ExceptionType | type | Exception type |
System.Func<System.String>[] | parameter | Additional parameter for the exception message. Parameters are handled as function, to minimize the possibility of passing parameters that causes an exception too. |
Properties
| Improve this Doc View SourceCode
Gets or sets the error-code
Declaration
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Gets or sets the exception id. By default this should be guid
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Parameter
Gets or sets the parameter for the error message
Declaration
public IList<string> Parameter { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
Type
Gets or sets the actual exception type
Declaration
public ExceptionType Type { get; set; }
Property Value
Type | Description |
---|---|
ExceptionType |