captured the exception