define RoutingError with standard class declaration.

closes #11