Convert bandwidthError to exception

Also, change the error number format. Bitwise makes more sense.