Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrismaException"/> class.
 /// </summary>
 /// <param name="error">The code of the error that caused the exception.</param>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="innerException">The inner exception.</param>
 public PrismaException(PrismaError error, string message, Exception innerException)
     : base(message, innerException)
 {
     this.ErrorCode = error;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrismaException"/> class.
 /// </summary>
 /// <param name="error">The code of the error that caused the exception.</param>
 /// <param name="message">The message that describes the error.</param>
 public PrismaException(PrismaError error, string message)
     : base(message)
 {
     this.ErrorCode = error;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrismaException"/> class.
 /// </summary>
 /// <param name="message">The message that describes the error.</param>
 /// <param name="innerException">The inner exception.</param>
 public PrismaException(string message, Exception innerException)
     : base(message, innerException)
 {
     this.ErrorCode = PrismaError.Unspecified;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrismaException"/> class.
 /// </summary>
 /// <param name="error">The code of the error that caused the exception.</param>
 public PrismaException(PrismaError error)
     : base()
 {
     this.ErrorCode = error;
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrismaException"/> class.
 /// </summary>
 public PrismaException()
     : base()
 {
     this.ErrorCode = PrismaError.Unspecified;
 }