You need to include what type of error it was.

Note: It's generally a bad idea to have a method and a variable with the same name. It can be confusing to anyone reading the code. Methods should...