Skip to content
Stack Code Review
Question and answer site for peer programmer code reviews.
MENU
  • HOME

Tag: exception

Custom Exceptions based off the Visual Studio snippet

By mariaPosted on December 20, 2022

Problem I’m creating my own application exception types so I could catch them higher in the call stack and take […]

Accumulating inner exception messages

By mariaPosted on October 27, 2022

Problem Say, there is a class with some methods, that have try catch blocks. I need to accumulate messages from […]

Throwing exceptions when validation fails

By mariaPosted on October 9, 2022

Problem When I want to check the validity of an attendance being entered into the system, I perform following action. […]

Custom exceptions for validating movie information

By mariaPosted on October 2, 2022

Problem I wrote my first application about custom exceptions and catching them. Here is the GitHub link. I Have 3 […]

Checking if a directory exists in FTP without relying on exception handling

By mariaPosted on September 6, 2022

Problem I’ve written a method to check if a directory already exists on an FTP server. The only way I […]

Wordle guesser, breaking out of loop by raising exception

By mariaPosted on May 10, 2022

Problem After many years away from writing in Python, I am getting back into it. Specifically, I am trying to […]

Good approach to raise an exception

By mariaPosted on April 3, 2022

Problem I have class House and module Lockable. Locking and unlocking House should reflect the real world, so you can’t […]

What’s your opinion on a Throw() method?

By mariaPosted on March 11, 2022

Problem Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is […]

“Guess a random letter” game with command line interface

By mariaPosted on November 13, 2021

Problem The code below if launched on the command line is a simple guessing game. A random character ‘a’, ‘b’ […]

Custom exception for string that is too long

By mariaPosted on July 31, 2021

Problem This is my first time working with Java exceptions. I have made a program that works to specifications, but […]

  • 1
  • 2
  • 3
  • 4

Recent Posts

  • Is Lock necessary to make operation thread safe for this scenario
  • Modeling and computing intersection between continuous intervals
  • width: 60%
  • Verifying requirements before deleting a user-parent-student-school relationship
  • Convert an object to an ordered by SemVer Markdown list
  • HTML form enable one list of options or another
  • What is the most best way to write a bubble sort in java? [closed]
  • Memory leak in a scraper [closed]
  • Bubble sort in Ruby
  • My own version of a search binary tree
  • Reorganizing a PHP array structure (arrays within arrays)
  • Bash script – automate an upload image + description process on a server
  • Project Euler problem #11 – Largest product in a grid
  • Minimum Refills from A to B
  • Performance issue in generic sql utility

Categories

  • .Net
  • Algorithm
  • Android
  • Array
  • Bash
  • C#
  • Console
  • CSS
  • Haskel
  • Html
  • Java
  • Javascript
  • JSON
  • MySQL
  • Node Js
  • Object Oriented
  • Parsing
  • Php
  • Programming Chalenge
  • Python 3
  • React JS
  • Recursion
  • Regex
  • Ruby
  • Security
  • Sorting
  • SQL
  • Strings
  • Swift
  • VBA
Proudly powered by WordPress / Theme: Superfast