Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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,809 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,809 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord