Use the word "method" instead of "type". Improved the error message.