Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DaprException"/> class with specified error message and error code.
 /// </summary>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="errorCode">The error code associated with the exception.</param>
 /// <param name="isTransient">Indicating if its an transient exception. </param>
 public DaprException(string message, DaprErrorCodes errorCode, bool isTransient)
     : this(message, null, errorCode, isTransient)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DaprException"/> class.
 /// Initializes a new instance of <see cref="DaprException" /> class
 /// with a specified error message, a reference to the inner exception that is the cause of this exception, and a specified error code.
 /// </summary>
 /// <param name="message">The error message that explains the reason for the exception.</param>
 /// <param name="inner">The exception that is the cause of the current exception or null if no inner exception is specified. The <see cref="System.Exception" /> class provides more details about the inner exception..</param>
 /// <param name="errorCode">The error code associated with the exception.</param>
 /// <param name="isTransient">Indicating if its an transient exception. </param>
 public DaprException(string message, Exception inner, DaprErrorCodes errorCode, bool isTransient)
     : base(message, inner)
 {
     this.ErrorCode   = errorCode;
     this.IsTransient = isTransient;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DaprException"/> class with a specified error code.
 /// </summary>
 /// <param name="errorCode">The error code associated with the exception.</param>
 /// <param name="isTransient">True, if the exception is to be treated as an transient exception.</param>
 public DaprException(DaprErrorCodes errorCode, bool isTransient)
     : this(string.Empty, errorCode, isTransient)
 {
 }