error check

add the ThrowError module