Tag: Enums

How To Wrap Your Errors With Enums When Using Error-Stack

I am an intermediate Rust developer, and you may know me from my posts on subreddits like r/opensource or r/rust or from my various projects on GitHub. Recently, we decided to do error handling and provide custom error messages for the errors related to each engine code presen...

Sealed Classes and Enums in Kotlin: Your Guide to Cleaner Code

Today, we’re diving into the wonderful world of enums and sealed classes — two trusty tools that can make your coding life a whole lot smoother. Enums Think of enums as a special type of box where you put crayons of different colors. Each crayon can only be one of the colors you&rs...

How To Wrap Your Errors With Enums When Using Error-Stack

I am an intermediate Rust developer, and you may know me from my posts on subreddits like r/opensource or r/rust or from my various projects on GitHub. Recently, we decided to do error handling and provide custom error messages for the errors related to each engine code presen...