Class SBaseException
- Namespace
- SWConfigDataSharedLib.Exceptions
- Assembly
- IpPbxCDSSharedLib.dll
SBaseException is the base exception class of all CDS exceptions. The source of a CDS exception can be the CDSClient or the CDSService. A can cntain a localizable message. In that case the exception contains a ResourceID string and parameter list. The localization will be done implicitly and in the context (culture) of the using appilication.
public class SBaseException : Exception
- Inheritance
-
SBaseException
- Derived
Constructors
SBaseException(SMessageResources, params object[])
Contructor with message from resource
public SBaseException(SMessageResources MessageResource, params object[] paramters)
Parameters
MessageResource
SMessageResourcesparamters
object[]
SBaseException(Exception, SMessageResources, params object[])
Contructor with message from resource
public SBaseException(Exception innerException, SMessageResources MessageResource, params object[] paramters)
Parameters
innerException
ExceptionMessageResource
SMessageResourcesparamters
object[]
SBaseException(string)
Constructor
public SBaseException(string message)
Parameters
message
string
SBaseException(string, bool)
Constructor
public SBaseException(string message, bool Localized)
Parameters
SBaseException(string, Exception)
Constructor
public SBaseException(string message, Exception innerException)
Parameters
SBaseException(string, Exception, bool)
Constructor
public SBaseException(string message, Exception innerException, bool Localized)
Parameters
Fields
m_Localized
protected bool m_Localized
Field Value
remoteException
protected SRemoteBaseException remoteException
Field Value
- SRemoteBaseException
Properties
HasLocalizedMessage
True if message is localizable from resource.
public bool HasLocalizedMessage { get; }
Property Value
Localized
True if the message is Localized. All exception containing ResourceIDs return true. Exceptions from other subsystems like SQL-Server or OS can be localized too.
public virtual bool Localized { get; }
Property Value
Message
Get the message of the exception. It the message is localizable the message will be localized automaticly.
public override string Message { get; }
Property Value
MessageResource
The resource id.
public string MessageResource { get; }
Property Value
MessageSummary
Gets the message of the exceptions and its inner exception
public virtual string MessageSummary { get; }
Property Value
RemoteInnerException
The tranport class
public virtual Exception RemoteInnerException { get; }
Property Value
RemoteType
Get the remote type of this exception.
public virtual string RemoteType { get; }
Property Value
StackTrace
Gets the stack trace
public override string StackTrace { get; }
Property Value
isRemoteException
protected bool isRemoteException { get; }