public PadiException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { Description = info.GetString("Description"); Cause = (PadiExceptiontType)info.GetValue("Cause", typeof(PadiExceptiontType)); }
public PadiException(PadiExceptiontType cause, String description) { this.Cause = cause; this.Description = description; }