Example #1
0
 /// <summary>
 ///
 /// Creates MartenCommandNotSupportedException based on the reason, command and innerException information with formatted message.
 /// </summary>
 /// <param name="reason">reason for feature not being supported</param>
 /// <param name="command">failed Postgres command</param>
 /// <param name="innerException">internal exception details</param>
 /// <param name="message">optional additional exception information</param>
 public MartenCommandNotSupportedException(
     NotSupportedReason reason,
     NpgsqlCommand command,
     Exception innerException,
     string message = null
     ) : base(command, innerException, message)
 {
     Reason = reason;
 }
Example #2
0
 internal KnownNotSupportedExceptionCause(string description, NotSupportedReason reason, Func <Exception, bool> match)
 {
     Description = description;
     Reason      = reason;
     this.match  = match;
 }
Example #3
0
 public VersionNotSupportedException(NotSupportedReason reason)
 {
     Reason = reason;
 }
Example #4
0
 public VersionNotSupportedException(NotSupportedReason reason, string message)
     : base(message)
 {
     Reason = reason;
 }
Example #5
0
 public VersionNotSupportedException(NotSupportedReason reason, string message, Exception innerException)
     : base(message, innerException)
 {
     Reason = reason;
 }