Пример #1
0
        public Trace(Frame[] frames, RollbarException exception)
        {
            if (frames == null)
            {
                throw new ArgumentNullException(nameof(frames));
            }

            if (exception == null)
            {
                throw new ArgumentNullException(nameof(exception));
            }

            Frames    = frames;
            Exception = exception;
        }
Пример #2
0
        public Trace(Exception exception)
        {
            if (exception == null)
            {
                throw new ArgumentNullException(nameof(exception));
            }

            if (!FrameFactory.IsInitialized || FrameFactory.Get == null)
            {
                throw new ArgumentNullException();
            }

            Frames    = FrameFactory.Get.Invoke(exception);
            Exception = new RollbarException(exception);
        }