🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points

    Exception printStackTrace()

    Posted April 24, 2017 7:34am by Malcolm Mutambanengwe
    Malcolm Mutambanengwe
    4,205 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • Mark Freeman
    Mark Freeman
    6,978 Points

    You wouldn't call printStackTrace() on Android. It should be logged using Log.e() instead.

    Posted September 10, 2016 10:04pm by Mark Freeman
    Mark Freeman
    6,978 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    0 Answers

  • Adrià Illa
    PLUS
    Adrià Illa
    Courses Plus Student 62 Points

    Handle an exeption

    Posted May 23, 2016 4:31pm by Adrià Illa
    Adrià Illa
    Courses Plus Student 62 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    0 Answers

  • Casper Rasmussen
    Casper Rasmussen
    4,478 Points

    Why

    Posted February 10, 2016 3:22pm by Casper Rasmussen
    Casper Rasmussen
    4,478 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • Nancy Melucci
    PLUS
    Nancy Melucci
    Courses Plus Student 36,159 Points

    Mememaker won't sync in later editions of Studio

    Posted January 10, 2016 3:54am by Nancy Melucci
    Nancy Melucci
    Courses Plus Student 36,159 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    0 Answers

  • yossi nagar
    yossi nagar
    2,652 Points

    pls explain me try and catch

    Posted November 22, 2015 12:42pm by yossi nagar
    yossi nagar
    2,652 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • muz140912godwillilunga
    muz140912godwillilunga
    4,245 Points

    Need help with this code pliz

    Posted September 24, 2015 5:36pm by muz140912godwillilunga
    muz140912godwillilunga
    4,245 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • MUZ140667 Tawanda Shoko
    MUZ140667 Tawanda Shoko
    4,152 Points

    Android Data Persistence Challenge 2

    Posted June 15, 2015 9:00am by MUZ140667 Tawanda Shoko
    MUZ140667 Tawanda Shoko
    4,152 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • Esteban Aparicio
    Esteban Aparicio
    10,725 Points

    I don't think the checker is working correctly for this challenge.

    Posted March 29, 2015 2:25am by Esteban Aparicio
    Esteban Aparicio
    10,725 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • Marcin Łuszkiewicz
    Marcin Łuszkiewicz
    6,061 Points

    compiler error in challenge

    Posted March 25, 2015 10:25am by Marcin Łuszkiewicz
    Marcin Łuszkiewicz
    6,061 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    2 Answers

  • PD Nghia
    PD Nghia
    10,536 Points

    Challenge: Handling An Exception

    Posted March 24, 2015 11:59am by PD Nghia
    PD Nghia
    10,536 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    3 Answers

  • Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points

    The code below has the potential to throw an exception. Wrap this code in a try/catch so it can gracefully react to an e

    Posted March 23, 2015 8:50pm by Zubeyr Aciksari
    Zubeyr Aciksari
    21,074 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    3 Answers

  • Guy Bridge
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Guy Bridge
    Android Development Techdegree Graduate 24,991 Points

    Hi, I'm trying to put the following code in a try/catch however I keep getting the compile error.

    Posted March 23, 2015 12:14pm by Guy Bridge
    .a{fill-rule:evenodd;}techdegree seal-36
    Guy Bridge
    Android Development Techdegree Graduate 24,991 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    4 Answers

  • Ana Cunha
    Ana Cunha
    8,041 Points

    What is wrong with my Exception handling?

    Posted March 22, 2015 12:09am by Ana Cunha
    Ana Cunha
    8,041 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    2 Answers

  • Eston Burciaga
    Eston Burciaga
    1,729 Points

    in the Android Data Persistence lab, why is "catch (Exception e)" not catching all errors?

    Posted February 15, 2015 7:05pm by Eston Burciaga
    Eston Burciaga
    1,729 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    2 Answers

  • Jery Althaf
    Jery Althaf
    5,818 Points

    Showing errors

    Posted January 29, 2015 4:53am by Jery Althaf
    Jery Althaf
    5,818 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • Joseph Yong
    PLUS
    Joseph Yong
    Courses Plus Student 2,920 Points

    I have called printStackTrace() in my catch block (ge.printStackTrace()), but the compiler keep asking me to call it.

    Posted November 4, 2014 12:11am by Joseph Yong
    Joseph Yong
    Courses Plus Student 2,920 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    1 Answer

  • Greg Schmidt
    Greg Schmidt
    5,908 Points

    Try / Catch Exception issues

    Posted November 3, 2014 5:11am by Greg Schmidt
    Greg Schmidt
    5,908 Points
    • Android
    • Android Data Persistence
    • Introduction to Data Persistence
    • Handling an Exception

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.