Finish migration of error.rs
Finish migration of error.rs

This commit finishes the migration of error.rs to use the new exception
API in 0.12.0. Most of the work was done on this, just a few little
pieces that needed to be updated to conform to the new api.

termoshtt/rust-numpy,termoshtt/rust-numpy