Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public BaseException(ErrorSeverity severity, int code, string message, string details, string serverContext, NoIDException innerException)
     : base(severity, code, message, details, serverContext, innerException)
 {
 }
Beispiel #3
0
 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;
 }