Error propagation in Amethyst

(Martin) #1

Would it make sense to ask the team to change amethyst::Error::Application to have a Box< std::error::Error> attribute? I’m trying to work out error propagation if there is an error in some Amethyst user code and (as I understand it) it is idiomatic to use the ? operator. Amethyst seems to want an amethyst::Error., and so for ? to work you need a From<Box<std::error::Error>> for amethyst::Error implementation. I’m new to this, so please point out my errors in this if any.

1 Like