Throw all errors correctly