示例#1
0
 public DBusException(DBusErrors error, string errorMessage)
     : base($"{error.GetDescription(): errorMessage}")
 {
     WellknownError = error;
     ErrorName      = error.GetDescription();
     ErrorMessage   = errorMessage;
 }
示例#2
0
 void SendErrorReply(Message incoming, DBusErrors error, string errorMessage, IMessageStream peer)
 {
     SendMessage(MessageHelper.ConstructErrorReply(incoming, error, errorMessage), peer);
 }
示例#3
0
 public static Message ConstructErrorReply(Message incoming, DBusErrors error, string errorMessage)
 {
     return(ConstructErrorReply(incoming, error.GetDescription(), errorMessage));
 }