Search Results for

    Show / Hide Table of Contents

    Class CoreException

    Simplic core exception, should be used when throwing an expected/unexpected exception

    Inheritance
    System.Object
    System.Exception
    CoreException
    Implements
    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    System.Exception.GetType()
    System.Exception.Message
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    Namespace: Simplic
    Assembly: Simplic.CoreLib.dll
    Syntax
    [Serializable]
    public class CoreException : Exception, ISerializable, _Exception

    Constructors

    | Improve this Doc View Source

    CoreException()

    Initialize exception instance

    Declaration
    public CoreException()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    Code

    Gets or sets the error-code

    Declaration
    public string Code { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Type

    Gets or sets the actual exception type

    Declaration
    public ExceptionType Type { get; set; }
    Property Value
    Type Description
    ExceptionType

    Implements

    System.Runtime.Serialization.ISerializable
    System.Runtime.InteropServices._Exception
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx