Create an expected error.
the created expected error
< type of the expected error
< type of the expected value
the expected error