Added length to exception