public NoIDException(Exception exception, Exception innerException) : base(exception.Message, innerException) { HResult = DEFAULT_EXCEPTION_HRESULT; NoIDException dataphorException = exception as NoIDException; _serverContext = exception.StackTrace; if (dataphorException != null) { _code = dataphorException.Code; _severity = dataphorException.Severity; _details = dataphorException.GetDetails(); } else { _code = ApplicationError; _severity = ErrorSeverity.Application; } }
public BaseException(ErrorSeverity severity, int code, string message, string details, string serverContext, NoIDException innerException) : base(severity, code, message, details, serverContext, innerException) { }
public NoIDException(ErrorSeverity severity, int code, string message, string details, string serverContext, NoIDException innerException) : base(message, innerException) { _severity = severity; _code = code; _details = details; _serverContext = serverContext; HResult = DEFAULT_EXCEPTION_HRESULT; }