Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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;
 }
Ejemplo n.º 4
0
 /// <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)
 {
 }
Ejemplo n.º 5
0
 /// <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)
 {
 }
Ejemplo n.º 8
0
 /// <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)
 {
 }
Ejemplo n.º 9
0
 /// <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)
 {
 }
Ejemplo n.º 14
0
 /// <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)
 {
 }
Ejemplo n.º 16
0
 /// <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;
 }
Ejemplo n.º 20
0
 /// <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;
 }
Ejemplo n.º 22
0
 /// <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);
 }
Ejemplo n.º 23
0
 /// <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;
 }
Ejemplo n.º 24
0
 /// <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;
 }
Ejemplo n.º 25
0
 /// <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)
 {
 }
Ejemplo n.º 30
0
 /// <summary> Constructor. </summary>
 /// <param name="detail"> Detail about the cause of the exception. </param>
 internal MessagingEntityAlreadyExistsException(MessagingExceptionDetail detail) :
     base(detail, false)
 {
 }