error-chain icon indicating copy to clipboard operation
error-chain copied to clipboard

Allow deriving traits on the Error

Open Yamakaky opened this issue 8 years ago • 8 comments
trafficstars

Possible syntax:

error_chain! {
  derive { Eq, PartialEq }
  ...
}

We may have to add a trait which the chained errors would have to implement.

Yamakaky avatar Feb 21 '17 22:02 Yamakaky

Should this be done as "attrs" or something that would also allow passing attributes for proc macro crates like serde_derive?

TedDriggs avatar Apr 07 '17 17:04 TedDriggs

Any news? Ran into this problem while I was trying to use pseudo :)

kpcyrd avatar Nov 29 '17 11:11 kpcyrd

Hello, are there any updates in this?

ivanovaleksey avatar Mar 05 '18 06:03 ivanovaleksey

Any updates?

lneicelis avatar Oct 30 '20 18:10 lneicelis

I've switched to failure in the meantime, and then switched to anyhow after that, I'm not sure if people still work on error-chain

kpcyrd avatar Oct 30 '20 19:10 kpcyrd

no, anyhow + thiserror is better so I don't think there is more work on error-chain.

Yamakaky avatar Oct 30 '20 20:10 Yamakaky

error-chain does not have new features developed, but there is an effort to keep it working as breaking changes are introduced from rust-lang. Probably better to find a different library (if you even need one) for new projects.

AndyGauge avatar Oct 30 '20 20:10 AndyGauge

Thank you!

lneicelis avatar Oct 30 '20 20:10 lneicelis