public MessagingException(string message, bool isTransientError, Exception innerException) : base(message, innerException)
        {
            MessagingExceptionDetail messagingExceptionDetail = MessagingExceptionDetail.UnknownDetail(message);

            this.Initialize(messagingExceptionDetail, null, DateTime.UtcNow);
            this.IsTransient = isTransientError;
        }
 private void Initialize(MessagingExceptionDetail detail, TrackingContext currentTracker, DateTime timestamp)
 {
     this.IsTransient = true;
     this.Detail      = detail;
     this.Tracker     = currentTracker ?? TrackingContext.GetInstance(Guid.NewGuid());
     this.Timestamp   = timestamp;
     if (base.GetType() != typeof(MessagingException))
     {
         this.DisablePrepareForRethrow();
     }
 }
        public MessagingException(string message, Exception innerException) : base(message, innerException)
        {
            MessagingExceptionDetail messagingExceptionDetail = MessagingExceptionDetail.UnknownDetail(message);

            this.Initialize(messagingExceptionDetail, null, DateTime.UtcNow);
        }
Пример #4
0
 public InternalServerErrorException(TrackingContext context) : base(MessagingExceptionDetail.UnknownDetail(SRClient.InternalServerError), context)
 {
     this.Initialize();
 }
Пример #5
0
 public InternalServerErrorException(MessagingExceptionDetail detail, TrackingContext context) : base(detail, context)
 {
     this.Initialize();
 }
 public MessagingEntityAlreadyExistsException(string message, TrackingContext trackingContext, Exception innerException) : base(MessagingExceptionDetail.EntityConflict(message), trackingContext, innerException)
 {
     base.IsTransient = false;
 }
 internal ServerBusyException(string message, TrackingContext trackingContext, Exception innerException) : base(MessagingExceptionDetail.ServerBusy(message), trackingContext, innerException)
 {
 }
Пример #8
0
 internal RequestQuotaExceededException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail, trackingContext, innerException)
 {
 }
 public MessagingEntityNotFoundException(string entityName) : this(MessagingExceptionDetail.EntityNotFound(SRClient.MessagingEntityCouldNotBeFound(entityName)), null)
 {
     base.IsTransient = false;
 }
 internal ReceiverDisconnectedException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail, trackingContext, innerException)
 {
     base.IsTransient = false;
 }
Пример #11
0
 internal QuotaExceededException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail, trackingContext, innerException)
 {
     base.IsTransient = false;
 }
Пример #12
0
 internal TransactionSizeExceededException(MessagingExceptionDetail detail, TrackingContext trackingContext) : base(detail, trackingContext)
 {
     base.IsTransient = false;
 }
 internal DuplicateMessageException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail, trackingContext, innerException)
 {
     base.IsTransient = false;
 }
 internal MessagingEntityAlreadyExistsException(MessagingExceptionDetail detail, TrackingContext trackingContext) : base(detail, trackingContext)
 {
     base.IsTransient = false;
 }
Пример #15
0
 internal MessagingException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail.Message, innerException)
 {
     this.Initialize(detail, trackingContext, DateTime.UtcNow);
 }
 public MessagingEntityNotFoundException(string message, Exception innerException) : base(MessagingExceptionDetail.EntityNotFound(message), null, innerException)
 {
     base.IsTransient = false;
 }
 internal MessagingEntityNotFoundException(MessagingExceptionDetail detail, TrackingContext trackingContext) : base(detail, trackingContext)
 {
     base.IsTransient = false;
 }
 internal ServerBusyException(MessagingExceptionDetail detail, TrackingContext trackingContext) : base(detail, trackingContext)
 {
 }
Пример #19
0
 internal MessageStoreLockLostException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail, trackingContext, innerException)
 {
     base.IsTransient = false;
 }
Пример #20
0
 internal MessagingEntityDisabledException(MessagingExceptionDetail detail, TrackingContext trackingContext, Exception innerException) : base(detail, trackingContext, innerException)
 {
     base.IsTransient = false;
 }
 public MessagingEntityAlreadyExistsException(string entityName, TrackingContext trackingContext) : this(MessagingExceptionDetail.EntityConflict(SRClient.MessagingEntityAlreadyExists(entityName)), trackingContext, null)
 {
     base.IsTransient = false;
 }