protected static string CreateMessage(string signal, Udbus.Core.DbusSignalParams signalParams,
                                              Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
        {
            string message = string.Format("dbus signal: {0} {1} - '{2}'", msgStruct.ToString(), signalParams.ToString(), signal);

            return(message);
        }
 public UdbusMessageSignalException(string signal, Udbus.Core.DbusSignalParams signalParams,
                                    Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct, string message, Exception inner)
     : base(msgStruct, message, inner)
 {
     this.signal       = signal;
     this.signalParams = signalParams;
 }
 /// Factory functions
 public static UdbusMessageSignalArgumentException Create(uint index, string argument, Type argumentType, int result,
                                                          string signal, Udbus.Core.DbusSignalParams signalParams,
                                                          Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     return(new UdbusMessageSignalArgumentException(index, argument, argumentType, result, signal, signalParams, msgStruct,
                                                    CreateMessage(index, argument, argumentType, result, signal, signalParams, msgStruct)));
 }
 public UdbusMessageSignalException(string signal, Udbus.Core.DbusSignalParams signalParams,
                                    Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct,
                                    System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(msgStruct, info, context)
 {
     this.signal       = signal;
     this.signalParams = signalParams;
 }
        //UdbusMessageSignalArgumentException.Create(1, "percent_free", typeof(Int32), this.result, "storage_space_low", messageData.Data, this.signalKey)


        public UdbusMessageSignalArgumentException(uint index, string argument, Type argumentType, int result,
                                                   string signal, Udbus.Core.DbusSignalParams signalParams,
                                                   Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
            : base(signal, signalParams, msgStruct)
        {
            this.index        = index;
            this.argument     = argument;
            this.argumentType = argumentType;
            this.result       = result;
        }
        protected static string CreateMessage(uint index, string argument, Type argumentType, int result,
                                              string signal, Udbus.Core.DbusSignalParams signalParams,
                                              Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
        {
            string message = string.Format("dbus {0} argument[{1}]: '{2} {3}'. result={4}. {5}. {6}"
                                           , signal, index, argumentType.Name, argument, result
                                           , msgStruct.ToString(), signalParams.ToString()
                                           );

            return(message);
        }
 public static UdbusMessageSignalException Create(string signal, Udbus.Core.DbusSignalParams signalParams,
                                                  Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct, string message)
 {
     return(new UdbusMessageSignalException(signal, signalParams, msgStruct,
                                            Udbus.Serialization.Exceptions.ExceptionFormatter.FormatExceptionMessage(message, CreateMessage(signal, signalParams, msgStruct))));
 }
 /// Factory functions
 public static UdbusMessageSignalException Create(string signal, Udbus.Core.DbusSignalParams signalParams,
                                                  Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct)
 {
     return(new UdbusMessageSignalException(signal, signalParams, msgStruct, CreateMessage(signal, signalParams, msgStruct)));
 }
 public UdbusMessageSignalException(string signal, Udbus.Core.DbusSignalParams signalParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct,
     System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
     : base(msgStruct, info, context)
 {
     this.signal = signal;
     this.signalParams = signalParams;
 }
 public UdbusMessageSignalException(string signal, Udbus.Core.DbusSignalParams signalParams,
     Udbus.Serialization.NMessageStruct.UdbusMessageHandle msgStruct, string message, Exception inner)
     : base(msgStruct, message, inner)
 {
     this.signal = signal;
     this.signalParams = signalParams;
 }