General API design question: FooError vs Foo::Error

Hi all,

I’ve noticed that some libs have changed from a class like FooError to
Foo::Error. Take a look at TimeoutError vs Timeout::Error, for example.

Is there a reason the latter is preferred these days? Just curious.

Regards,

Dan