Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Adding Users Using Parse.com Creating a New User on Parse

Code challenge step 3

I'm getting an error on my Log.e() statement: ./SignUpActivity.java:15: cannot find symbol symbol : method e(java.lang.String,java.lang.String,com.parse.ParseException) location: class android.util.Log Log.e(TAG,"ERROR",e); ^ 1 error

Am I missing something? I'm coding... Log.e(TAG,"ERROR",e);

2 Answers

For some reason the method signature Log.e(String,String,Throwable) is not available. Simply omit the last parameter to proceed.

Steve Wamsley
Steve Wamsley
7,977 Points

That got me past the code challenge, but I think the real problem is that ParseException is not extending Exception. I tried the following:

Log.e(TAG, "ERROR", (Exception) e);

That created a type cast error.

Log.e(TAG, "ERROR", new Exception(e.getMessage()));

That caused an error saying ParseException does not have a getMessage() method.