/// <summary> /// Initializes a new instance of the <see cref="MessagingException"/> class. /// </summary> /// <param name="message">The exception message.</param> /// <param name="innerException">The inner exception.</param> public MessagingException(string message, Exception innerException) : base(message, innerException) { MessagingExceptionDetail detail = MessagingExceptionDetail.UnknownDetail(message); this.Initialize(detail, DateTime.UtcNow); }
/// <summary> /// Initializes a new instance of the <see cref="MessagingException"/> class. /// </summary> /// <param name="message">The exception message.</param> /// <param name="isTransientError">If set to <c>true</c>, indicates it is a transient error.</param> /// <param name="innerException">The inner exception.</param> public MessagingException(string message, bool isTransientError, Exception innerException) : base(message, innerException) { MessagingExceptionDetail detail = MessagingExceptionDetail.UnknownDetail(message); this.Initialize(detail, DateTime.UtcNow); this.IsTransient = isTransientError; }
void Initialize(MessagingExceptionDetail detail, DateTime timestamp) { this.IsTransient = true; this.Detail = detail; this.Timestamp = timestamp; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="innerException"> The inner exception. </param> internal MessagingEntityAlreadyExistsException(MessagingExceptionDetail detail, Exception innerException) : base(detail, false, innerException) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal UnauthorizedException(MessagingExceptionDetail detail) : base(detail, false) { }
public InternalServerErrorException(MessagingExceptionDetail detail) : base(detail) { this.Initialize(); }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal MessagingEntityNotFoundException(MessagingExceptionDetail detail) : base(detail, false) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="innerException"> The inner exception. </param> internal RequestQuotaExceededException(MessagingExceptionDetail detail, Exception innerException) : base(detail, innerException) { }
/// <summary> /// Initializes a new instance of the <see cref="MessagingEntityNotFoundException"/> class. /// </summary> /// <param name="message">The string exception message.</param> /// <param name="innerException">The inner exception to be propagated with this exception to the caller..</param> public MessagingEntityNotFoundException(string message, Exception innerException) : base(MessagingExceptionDetail.EntityNotFound(message), innerException) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal MessagingEntityDisabledException(MessagingExceptionDetail detail) : base(detail) { this.IsTransient = false; }
/// <summary> /// Initializes a new instance of the <see cref="MessagingEntityAlreadyExistsException"/> class. /// </summary> /// <param name="entityName">Name of the entity.</param> public MessagingEntityAlreadyExistsException(string entityName) : this(MessagingExceptionDetail.EntityConflict(SRClient.MessagingEntityAlreadyExists(entityName))) { this.IsTransient = false; }
/// <summary> /// Initializes a new instance of the <see cref="ServerBusyException"/> class. /// </summary> /// <param name="message">The exception message.</param> /// <param name="innerException">The inner exception.</param> public ServerBusyException(string message, Exception innerException) : base(MessagingExceptionDetail.ServerBusy(message), innerException) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal ServerBusyException(MessagingExceptionDetail detail) : base(detail) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal BadRequestException(MessagingExceptionDetail detail) : base(detail, false) { }
/// <summary> /// Initializes a new instance of the <see cref="MessagingCommunicationException"/> class. /// </summary> /// <param name="message">The string exception message.</param> /// <param name="innerException">The inner exception to be propagated with this exception to the caller..</param> /// <param name="isTransientError">If set to <c>true</c>, indicates it is a transient error.</param> public MessagingCommunicationException(MessagingExceptionDetail message, bool isTransientError, Exception innerException) : base(message, isTransientError, innerException) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="retryAfter">Retry after value.</param> internal QuotaExceededException(MessagingExceptionDetail detail, TimeSpan?retryAfter) : base(detail, true) { RetryAfter = retryAfter ?? DefaultRetryTimeout; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="isTransientError">If set to <c>true</c>, indicates it is a transient error.</param> internal MessagingException(MessagingExceptionDetail detail, bool isTransientError) : this(detail, isTransientError, null) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="innerException"> The inner exception. </param> internal MessagingEntityAlreadyExistsException(MessagingExceptionDetail detail, Exception innerException) : base(detail, innerException) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="isTransientError">If set to <c>true</c>, indicates it is a transient error.</param> /// <param name="innerException"> The inner exception. </param> internal MessagingException(MessagingExceptionDetail detail, bool isTransientError, Exception innerException) : base(detail.Message, innerException) { this.Initialize(detail, DateTime.UtcNow); this.IsTransient = isTransientError; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal RequestQuotaExceededException(MessagingExceptionDetail detail) : base(detail) { }
/// <summary> /// Initializes a new instance of the <see cref="MessagingEntityAlreadyExistsException"/> class. /// </summary> /// <param name="message">The string exception message.</param> /// <param name="innerException">The inner exception to be propagated with this exception to the caller..</param> public MessagingEntityAlreadyExistsException(string message, Exception innerException) : base(MessagingExceptionDetail.EntityConflict(message), innerException) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="innerException"> The inner exception. </param> internal MessagingException(MessagingExceptionDetail detail, Exception innerException) : base(detail.Message, innerException) { this.Initialize(detail, DateTime.UtcNow); }
/// <summary> /// Initializes a new instance of the <see cref="MessagingEntityNotFoundException"/> class. /// </summary> /// <param name="entityName">Name of the entity.</param> public MessagingEntityNotFoundException(string entityName) : this(MessagingExceptionDetail.EntityNotFound(SRClient.MessagingEntityCouldNotBeFound(entityName)), null) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="trackingContext"> The TrackingContext. </param> /// <param name="innerException"> The inner exception. </param> internal MessageStoreLockLostException(MessagingExceptionDetail detail, Exception innerException) : base(detail, innerException) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="trackingContext"> The TrackingContext. </param> /// <param name="innerException"> The inner exception. </param> internal MessagingEntityNotFoundException(MessagingExceptionDetail detail, Exception innerException) : base(detail, innerException) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal QuotaExceededException(MessagingExceptionDetail detail) : base(detail) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="innerException"> The inner exception. </param> internal TransactionSizeExceededException(MessagingExceptionDetail detail, Exception innerException) : base(detail, innerException) { this.IsTransient = false; }
internal ReceiverDisconnectedException(MessagingExceptionDetail detail, Exception innerException) : base(detail, innerException) { this.IsTransient = false; }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> /// <param name="innerException"> The inner exception. </param> internal MessagingEntityNotFoundException(MessagingExceptionDetail detail, Exception innerException) : base(detail, false, innerException) { }
/// <summary> Constructor. </summary> /// <param name="detail"> Detail about the cause of the exception. </param> internal MessagingEntityAlreadyExistsException(MessagingExceptionDetail detail) : base(detail, false) { }