Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Software Engineering

Questions tagged [exceptions]

Ask Question

An exception is an occurrence in an application process that requires deviation from the program's normal flow.

642 questions
Filter by
Sorted by
Tagged with
5votes
5answers
607views

Imagine I have a function like this (written in Java):void sayHello(String firstName, String lastName) { if (firstName == null) { throw new IllegalArgumentException("first name is ...
J-bob's user avatar
12votes
6answers
4kviews

The basics: what I knowI understand the basics of exceptions:If a function cannot perform its assigned task, it can signal it by throwing an exception,When writing a function, one must make sure ...
Eternal's user avatar
4votes
2answers
503views

I am trying to write a backend for use with a completely text based UI for one shot operations (eg. python scriptname arg, executes that argument and exits) and a GUI using the curses library for some ...
3votes
3answers
550views

I am starting a project in Java and ran into the following situation. The application requires a persistence layer for a certain document type. This could be a MySql database, an AWS Dynamo DB ...
1vote
4answers
554views

In order to make sure methods fail fast under invalid arguments, I usually do validation at the start of a method. If I'm verifying multiple predicates, this leads to a few lines of checkNotNull or ...
4votes
5answers
3kviews

I have the following method, which needs to return a List, but exceptions might occur along the way, and I don't want to handle them in my application, mainly because I don't even know how to handle ...
MasterTJ123's user avatar
0votes
2answers
733views

We manage a backend application behind a FastAPI REST controller with multiple endpoints.A member of our team decided to use a middleware on the application which parses the body of the response for ...
Blue_Elephant's user avatar
5votes
7answers
586views

Consider the following scenario.I have an interface IService:public interface IService{ void DoSomething();}with an implementation:public class Implementation : IService{ // This might ...
5votes
6answers
2kviews

A long time ago I was in a class and the professor had us write individual exception handlers for every possible error.This seems almost impossible to do when developing large pieces of software ...
FourierFlux's user avatar
1vote
5answers
254views

Consider the two following examples:public Something fetchSomething(String key) { if(somethingsMap.containsKey(key)) { return somethingsMap.get(key); } throw new ...
steros's user avatar
3votes
1answer
828views

I have been tasked with the title above. There is currently zero exception handling. There are 100+ threads, all created from main().Exceptions won't percolate up to main() - they won't leave the ...
Mawg's user avatar
  • 4,308
1vote
2answers
2kviews

how could we advise the web client about a non-recoverable exception thrown by the persistence adapter ?At first sight, I woulddefine a domain exception to be thrown by the persistence adapter and...
hjoly's user avatar
0votes
1answer
306views

We have a GraphQL server which sends data to the front end client.We have other tenants who will use our sever and host their code.I want to create a system where they all can create any custom ...
user415612's user avatar
0votes
1answer
140views

I need some guidance on how to send error responses to client from WebAPI controller for an update operation. I need to check if data is changed and if it has duplicate data. I have service class that ...
2votes
1answer
226views

Given that there are no checked exceptions in Kotlin, are Result types the correct way to indicate an exception occurred to the caller?For example, I have the following function in my code:suspend ...
Adam's user avatar
  • 272

153050per page
1
2345
43

Hot Network Questions

more hot questions
Newest exceptions questions feed

[8]ページ先頭

©2009-2025 Movatter.jp