Closed p1-mmr closed 4 years ago
Hi p1-mmr,
Good idear. When I originally wrote the library, main functions could not yet return directly with the ? operator. But implementing the std::error::Error
trait makes sense anyways.
I will have look at implementing the std::error::Error
trait for my error enums during the next week or so.
Greets Julian
Hi,
I added std::error::Error
implementations for ReadError
, WriteError
& ValueError
in version https://github.com/JulianSchmid/etherparse/releases/tag/0.9.0 .
Greets Julian
Hello,
Thank you for your great project.
I would note that when writing a function like this:
Will cause the compiler to raise the following error:
It seems to be caused by the fact that
etherparse::ReadError
does not implementstd::error::Error
.I think that it would be handy to be able to use the
?
operator in this case (maybe that there is another way?).Regards,