Class FCExceptionBase
Inheritance
System.Object
System.Exception
System.ApplicationException
FCExceptionBase
Implements
System.Runtime.InteropServices._Exception
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetType()
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: FChoice.Common
Assembly: FChoice.Common.dll
Syntax
public abstract class FCExceptionBase : ApplicationException, _Exception, ISerializable
Constructors
FCExceptionBase(Boolean, Exception, Int32, String, Object[])
Declaration
protected FCExceptionBase(bool logException, Exception innerEx, int errorId, string messageId, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System. |
logException | |
System. |
innerEx | |
System. |
errorId | |
System. |
messageId | |
System. |
args |
FCExceptionBase(Exception, Int32, String, Object[])
Declaration
protected FCExceptionBase(Exception innerEx, int errorId, string messageId, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System. |
innerEx | |
System. |
errorId | |
System. |
messageId | |
System. |
args |
FCExceptionBase(Int32, String, Object[])
Declaration
protected FCExceptionBase(int errorId, string messageId, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System. |
errorId | |
System. |
messageId | |
System. |
args |
FCExceptionBase(SerializationInfo, StreamingContext)
Declaration
protected FCExceptionBase(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | |
System. |
context |
Properties
ErrorCode
Declaration
public int ErrorCode { get; }
Property Value
Type | Description |
---|---|
System. |
ErrorMessageID
Declaration
public string ErrorMessageID { get; }
Property Value
Type | Description |
---|---|
System. |
Message
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
System. |
Overrides
System.Exception.Message
MessageProvider
Declaration
public static IErrorMessageProvider MessageProvider { get; }
Property Value
Type | Description |
---|---|
IError |
Methods
FormatMessage(String, String, Object[])
Declaration
protected virtual string FormatMessage(string messageId, string messageFmt, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System. |
messageId | |
System. |
messageFmt | |
System. |
args |
Returns
Type | Description |
---|---|
System. |
GetErrorMessageFormat(Object, String)
Declaration
protected virtual string GetErrorMessageFormat(object resData, string messageId)
Parameters
Type | Name | Description |
---|---|---|
System. |
resData | |
System. |
messageId |
Returns
Type | Description |
---|---|
System. |
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | |
System. |
context |
Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
GetResourceData()
Declaration
protected virtual object GetResourceData()
Returns
Type | Description |
---|---|
System. |
LoadErrorResourceSet(String)
Declaration
protected ResourceSet LoadErrorResourceSet(string resourceFileName)
Parameters
Type | Name | Description |
---|---|---|
System. |
resourceFileName |
Returns
Type | Description |
---|---|
System. |
SetMessageProvider(IErrorMessageProvider)
Declaration
public static void SetMessageProvider(IErrorMessageProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IError |
provider |
Implements
System.Runtime.InteropServices._Exception
System.Runtime.Serialization.ISerializable