Showing Error on Unknown Image

I Completed cat and dog example.It Works very well but now i want to show error message when there is image which is not in class for e.g- I Trained cats and dog image dataset but when i passs human image to predict then it shows cat or dog but it is actually wrong how i can handle this error?