Fix namespacing issue for throwing LengthException