PostgresException(SerializationInfo info, StreamingContext context) : base(info, context) { _msg = (ErrorOrNoticeMessage)info.GetValue("msg", typeof(ErrorOrNoticeMessage)); }