pub fn sanitize_error_code(error_code: &str) -> &strExpand description
Strips a leading namespace# prefix and a trailing :url suffix from a
wire-format error code, leaving just the bare shape name.
Examples:
"FooError"→"FooError""com.example#FooError"→"FooError""FooError:http://internal.example.com/coral/.../"→"FooError""com.example#FooError:http://..."→"FooError"