iroh icon indicating copy to clipboard operation
iroh copied to clipboard

feat: any errors that are used in publicly available traits need some method for creating that error.

Open ramfox opened this issue 6 months ago • 0 comments

Eg, in iroh-base, we have a trait Ticket, the method Ticket::from_bytes can return an iroh-base::ticket::ParseError, but there is no clean way to create a ParseError, since you would need to import other crates to fulfill the backtrace and span_tree fields inside the ParseError variant.

ramfox avatar Jun 23 '25 20:06 ramfox