Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.