• Skip to primary navigation
  • Skip to content
  • Skip to footer
Dave Clare
  • Posts
  • Categories
  • Tags
  • Brag
  • About
    Dave Clare

    Dave Clare

    Software Engineer

    • GitHub
    • LinkedIn

    try catch

    less than 1 minute read

    Try and Catch with Typescript

    try {
       // Do something that could throw an error
    } catch(error) {
      if (error instanceof Error) {
        // Do something. E.g.
        console.log(error.message)
      }
    }
    

    Tags: code, snippet, typescript

    Categories: Code

    Updated: October 5, 2023

    Share on

    X Facebook LinkedIn Bluesky
    Previous Next

    You May Also Enjoy

    From Helmets to Headsets — What Dev Teams Can Learn from the Outdoor Industry

    4 minute read

    This post might be stretching a metephor, but bear with me

    Postman Reusable Scripts

    less than 1 minute read

    I keep forgetting this.

    From Adding Machines to Ambiguity: Why AI Feels So Different

    1 minute read

    RAG Systems: Compound Error is Built In

    RAG at Scale is Hard: Are Startups Getting It Wrong?

    4 minute read

    Draft!

    • GitHub
    • LinkedIn
    • Feed
    © 2025 Dave Clare. Powered by Jekyll & Minimal Mistakes.