# Custom exceptions

Published articles for Custom exceptions.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Handling Runtime Exceptions

DevFeed: [Handling Runtime Exceptions](<https://devfeed.tech/articles/handling-runtime-exceptions-25055.md>)

Original publisher: [Read original article](<https://typealias.com/start/kotlin-exceptions/>)

Author: author@typealias.com (Dave Leeds)

Published: 2024-02-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dave Leeds on Kotlin - typealias.com](<https://devfeed.tech/sources/dave-leeds-on-kotlin-typealias-com.md>)

Topics: [Exception](<https://devfeed.tech/topics/exception.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [custom-exceptions](<https://devfeed.tech/tags/custom-exceptions.md>), [exception](<https://devfeed.tech/tags/exception.md>), [exception-handling](<https://devfeed.tech/tags/exception-handling.md>), [exception-types-in-kotlin](<https://devfeed.tech/tags/exception-types-in-kotlin.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [introduction](<https://devfeed.tech/tags/introduction.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-programming](<https://devfeed.tech/tags/kotlin-programming.md>), [kotlin-throw-keyword](<https://devfeed.tech/tags/kotlin-throw-keyword.md>), [learn-to-program](<https://devfeed.tech/tags/learn-to-program.md>), [programming](<https://devfeed.tech/tags/programming.md>), [runtime-errors](<https://devfeed.tech/tags/runtime-errors.md>), [try-catch-blocks](<https://devfeed.tech/tags/try-catch-blocks.md>)

### AI overview

This Kotlin tutorial explains runtime exceptions, contrasting runtime problems with compile-time errors and introducing how to handle unexpected problems while a program runs.

### Source excerpt

In real life, when we decide to do something, we primarily think in terms of a successful experience. For example, if you're driving to your friend's house for dinner, you might look up the directions on a mapping app, make sure you've got enough gasoline in the car, and leave at the right time in order to arrive when dinner is hot. If everything goes according to plan, you'll arrive on time.

## Improving Error Reporting in a Simple Interpreter

DevFeed: [Improving Error Reporting in a Simple Interpreter](<https://devfeed.tech/articles/let-s-build-a-simple-interpreter-part-15-33318.md>)

Original publisher: [Read original article](<https://ruslanspivak.com/lsbasi-part15/>)

Author: Ruslan Spivak

Published: 2019-06-21T09:45:00Z

Content type: tutorial

Language: en

Sources: [Ruslan Spivak](<https://devfeed.tech/sources/ruslan-spivak.md>)

Topics: [error reporting](<https://devfeed.tech/topics/error-reporting.md>), [Python](<https://devfeed.tech/topics/python.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [custom-exceptions](<https://devfeed.tech/tags/custom-exceptions.md>), [error-reporting](<https://devfeed.tech/tags/error-reporting.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

This tutorial improves error reporting in a simple interpreter's lexer, parser, and semantic analyzer. It adds error codes, custom exceptions, token position tracking, a scope command-line option, and Python 3.7+ support.

### Source excerpt

"I am a slow walker, but I never walk back." -- Abraham Lincoln And we're back to our regularly scheduled programming! :) Before moving on to topics of recognizing and interpreting procedure calls, let's make some changes to improve our error reporting a bit. Up until now, if there was ...