Most voted "exception" questions
The exception treatment is the mechanism responsible for the processing of occurrence of conditions that change the normal flow of code execution.
Learn more…329 questions
Sort by count of
-
1
votes1
answer58
viewsHow to fire multiple errors in a single data check using C#
I am creating a solution where I would like to keep all business rules within my models including the answer to errors. The problem is that I would also like to be able to capture multiple errors at…
-
1
votes0
answers111
viewsJava: Streamcorruptedexception in object serialization/deserialization
I’m conducting an exercise involving serialization and deserialization in Java. When running the program I am getting the following error in the IDE console (Netbeans): set 08, 2018 5:07:53 PM…
-
1
votes1
answer595
viewsUnknown error in integration with Webservice REST
I am trying to make a POST type request using the components: Resrrequest, Restclient, Restresponse by Delphi Xe8. In the GET type integration I can do normally, I get the return normally from the…
-
1
votes1
answer301
viewsCreate and implement Exceptions in PHP
I’m trying to learn to deal with Exceptions in PHP, but not just using Exception default. To solve my challenge, I need to create two Exceptions and fire them in two specific situations. Follow the…
-
0
votes1
answer260
viewsDetected an untreated exception. Generated code: [68MJGTMV] and [XJEL5QC6] - Expected exception
Caught an unhandled Exception. Generated code: [68MJGTMV]: javax.faces.Facesexception: #{classeBean.save()}: I checked the specified class that expect an Exception value, but it doesn’t. The problem…
-
0
votes2
answers97
viewsThe PHP Exception class for the system?
One question that came to me just now is "The PHP Exception class for the system?", what I mean is, when we release an exception in the script, something after this exception remains in operation?…
-
0
votes1
answer1850
viewsException when reading excel file using apache poi
I am trying to read an Excel (XLS) file, using the Apache Poi API, and am taking the Exception: java.io.IOException: Invalid header signature; read 0x0020000A000DFEFF, expected 0xE11AB1A1E011CFD0 -…
-
0
votes1
answer51
viewsDelphi xe5 + Android exception Rsconnectionclosedgracefully, for nothing
I’ve already checked several bugs on XE5 + Android, but this one is taking me down. The system spontaneously generates the exception RSConnectionClosedGracefully, for nothing. The same code runs…
-
0
votes1
answer141
viewsException released when using the Commons-email API
I’m trying to use the API Commons-Email as an alternative to the known JavaMail to send emails in Java but a problem is occurring. The following is being launched Exception: Exception in thread…
-
0
votes1
answer185
viewsHow to capture and treat an Exception in the Swift language
I have a method of one framework, of AVFunction that throws an exception, but when writing the code that calls this function I can’t find what exactly the exception is launched. How should I proceed…
-
0
votes0
answers36
viewsCustomized exceptions in JAX-RPC
I’m making some improvements to some JAX-RPC Web Services here at the company. I would like to know if it is possible to work with custom exceptions in this case and, if possible, if someone can…
-
0
votes0
answers366
viewsViewexpiredexception in view periodically updated
Good morning. I am with a periodically updated view which throws the following exception: Nov 03, 2015 11:21:49 AM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
0
votes1
answer71
viewsReport Error while copying files and folders using Threadpool
I have a Windows Form application which copies files and folders to various networked machines. When the copy is not possible, the name of the machine is added to a list and, at the end, I present…
-
0
votes1
answer56
viewsException Jtattoo main
Good afternoon, you guys, Me and a friend are servicing a system and we’re trying to generate a system jar. So far so good, the system compiles normal and all, but when we open the generated jar…
-
0
votes1
answer606
viewsI want to use php exceptions to ignore an error that ends up terminating the script
When the user does not have the client installed I get an error terminating the script. How to ignore it with exceptions and continue the script? PHP Warning: Invalid argument supplied for foreach()…
-
0
votes1
answer108
viewsCapture exceptions in swingworker execution
I’m using SwingWorker to execute a method that can throw exceptions. Even forcing, the exception is not captured by Try-catch. How can I solve this case? try { (new SwingWorker < Void, Void >…
java swing exception swingworker event-dispatch-threadasked 8 years, 8 months ago Lucas Alcântara 411 -
0
votes2
answers1857
viewsFor in a Java Object Arraylist
I am studying Java and I have a problem in a code I wrote. I need to read the name and age of 3 people and say the name of the youngest and the name of the oldest. I know the best way for a large…
-
0
votes1
answer227
viewsEventually java.lang.Arrayindexoutofboundsexception occurs
I made a simple algorithm of a book and there are two possible results. To test these results I have to run the program several times until Math.Random() generates the possible numbers and displays…
-
0
votes1
answer211
viewsArrayindexoutofboundsexception error while executing code
My code is giving the following error: Exception in thread "main" java.lang.Arrayindexoutofboundsexception: 10 at t151.main(t151.java:19) What it means and how to fix? Follows the code: public class…
-
0
votes2
answers2574
viewsException in thread "Javafx Application Thread" open FXML inside an Anchorpane
I created a top Menu and want to open the corresponding FXML file inside Anchorpane when I click on a menu item. But it has made the following mistake: Exception in thread "Javafx Application…
-
0
votes0
answers25
viewsPHP has more specific exceptions?
I usually see that everyone uses PHP with Pdoexception or the more generic Exception $e, but PHP has exceptions more specific? as in JAVA Nullpointerexception or Arithmeticexception or…
-
0
votes1
answer54
viewsProblem starting Javafx application
Hello, I’m trying to create a simple application in Javafx, everything was working until suddenly started giving problem when trying to start the program. You’re making the following exception:…
-
0
votes1
answer1407
viewsLaunch a custom Exception
I have a method in my Webservice that throws an exception if the card code is already in use, that is, when trying to free the access the system checks if it is already in use and returns to…
-
0
votes2
answers45
viewsException with variables
I’m kind of new with exceptions treatment, what I wanted to do was read a variable in c++ and in case it’s different from the kind I declared to fall in catch. int x; try { cin >> x; } catch…
-
0
votes2
answers290
viewsValidation of input data using functions, Try and except
try: number = int(input("Por favor, digite o seu número aqui e veja o que acontece: ")) except (ValueError, TypeError): print ("Por favor, insira somente números inteiros positivos") try:…
-
0
votes2
answers720
viewsDelphi - Thread exception handling
I wrote a thread on Delphi with exceptions treatment, but when the exception happens the operation is aborted and does not fall into the except block. Is there any specific treatment of exceptions…
-
0
votes1
answer63
viewsHow to capture several exceptions with C#switch?
I want to capture some exceptions using try-catch and switch. I made a few attempts, but it didn’t work. For example: try { //tarefas... } catch (Exception ex) { switch () { case PrimeiraExceção;…
-
0
votes0
answers8
viewsLaravel 5.8 Undefined Offset Error
Good evening, I am trying to run the company project on my PC, several other devs have managed, using the same methods that I, step by step, perfectly, I followed the same and got error, I believe…
-
0
votes1
answer55
viewsFailure to build Spring MVC application when configuring AOP bean
I’m trying to configure AOP in the spring.xml of my Spring MVC application, but I can’t build. I consulted the documentation, but following it did not succeed. The code is as follows:: <beans…
-
0
votes1
answer97
viewsConcurrent list modification can cause "java.lang.Illegalargumentexception"?
I have a multi-threaded program that makes concurrent modifications to an unsynchronized list (by bad design decision). Sometimes, in a seemingly unpredictable way, I get…
-
0
votes1
answer163
viewsIO Exception error when trying to manipulate a file
I have already compiled and run the program in Netbeans and it works normally, but when I run it through the terminal always gives the IO Exception error. Is there any other way to read files…
-
0
votes1
answer395
viewsTreat Inputmismatchexception calculator
I am making a calculator in java oo, and I would like to treat this exception but I don’t know how. This is the main class. public class Principal { public static void main(String[] args) {…
-
0
votes0
answers43
viewsSystem.Runtime.Serialization on UWP 10
I’m making an exception in a UWP, however, it seems that apps UWP do not have the same resources for serialization as classic applications. The code below does not work for UWP. using System; using…
-
0
votes1
answer84
viewsProblem zeroing out a game score
Well, I read Bjarne’s book on programming and I’m learning programming there, I’m in chapter 5 which is about mistakes, at the end of the chapter there’s a list of exercises for me to do, I came…
-
0
votes1
answer259
viewsReceive Firebird Exception message in PHP
My script PHP is not receiving the message from exceptions which are generated by Firebird. I have a class that connects to BD, runs sql and disconnects. Debugging the script, I saw that the…
-
0
votes1
answer262
viewsSave image from API to mobile memory
I’m trying to save an image coming from the API in mobile memory. public void saveSkin() { ivSkinSaver.buildDrawingCache(); Bitmap bm = ivSkinSaver.getDrawingCache(); OutputStream Out = null; try {…
-
0
votes3
answers300
viewsHow should I deal with mistakes?
Read a vector A with 12 elements. The vector must accept only the input of values that are divisible by 2 or 3. The input of values in the vector must be validated by the program and not by the…
-
0
votes0
answers1332
viewsInvalid DLL Error - System.Badimageformatexception
I searched and found that the Badimageformatexception exception is launched when the file image of a DLL or executable program is not valid. How to solve? Error log: Erro de Servidor no Aplicativo…
-
0
votes1
answer117
viewsProblems with the DAO
My DAL class launched the Typeinitializationexception exception. How to correct? Follows the code public partial class FrmConvenio : Form { ConvenioDAO convenioDAO = new ConvenioDAO(); // Lança…
-
0
votes1
answer56
viewsfile not found Exception web service
i have a web and mobile application that are powered by web service the problem that every time I am trying to recover a user I get the following message "java.io.filenotfoundexception" (followed by…
-
0
votes1
answer79
viewsCapture Stackoverflowexception
I have a problem with Stackoverflowexception in an application ASP.NET MVC and I can’t find what might be causing it. I installed the Elmah as suggested in another topic on the same problem, but it…
-
0
votes2
answers109
viewsLaunch Exception with error #1452 - Cannot add or update a Child Row: a Foreign key Constraint fails
I am developing an application where the user type some information, two of them are Code Driver and Code. This is an excerpt from my code: try { $database->query($sql); $_SESSION['message'] =…
-
0
votes0
answers62
viewsHow do I resolve the Arrayindexofbox exception in this program?
package projecto_algoritmia; import java.util.Scanner; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; /** * * @author Jeje */ public class Projecto_Algoritmia…
-
0
votes4
answers362
viewsHow do I skip the "Finally" block, in C#, when the exception is generated?
If the exception is generated, I want to know if there is a way to "skip" the execution of the block finally. If there is no exception, the finally perform normally. With the goto didn’t work. Code:…
-
0
votes1
answer103
viewsHow to store the error that Ci_exception provides
Hello, I would like to capture PHP errors in codeigniter and store them in the database, or at least display them more smoothly to the user, in the error_php.php file all the details I need are…
-
0
votes1
answer487
viewsWhy make use of Python exceptions using raise?
For example: class ListaUnica(object): def __init__(self, tipo): self.tipo = tipo self.lista = [] def __len__(self): return len(self.lista) def __getitem__(self, p): return self.lista[p] def…
-
0
votes2
answers99
viewsStackoverflowexception in c# by Linux visual studio code
I’m trying to learn a little c#, and the microsoft website encourages me to use vscode for programming on linux, but I’m having a problem with Stackoverflowexception and I can’t understand why (the…
-
0
votes2
answers439
viewsREGEX - denying prepositions in the name of public places
I could use some help in a regex. I need to beat streets at the base of the post office, but because of the prepositions many streets are not found. Example: Input file = STREET BEACH OF ARMACAO…
-
0
votes1
answer300
viewsException error in Dynamic List C++
I am creating a chained list in C++ and in condition if (j ->n == x), in the method wasVisited which should check if an element has already been inserted in the list, the following message…
-
0
votes2
answers3609
views"The process cannot access the file because it is being used by another process"
I have a class that retrieves database data and stores it in a D.Reader, and write each record in a text file, in this method: public void Escreve_Arquivos_Txt() { string folder =…