Questions tagged as 'excepciones'

0
answers

Global exception grabber

I have implemented a global trap of exceptions in my applications. In program I have put these 2 sentences: Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);...
asked by 24.06.2016 / 03:12
4
answers

How can I unify two catch?

We are doing tests to learn how to use exceptions. public class Principal { public static void main(String[] args) { int arrayEnterosE[]={1,2,3,0,7}; try{ for (int i = 0; i < arrayEnterosE.length; i++) { int...
asked by 09.05.2017 / 14:20
2
answers

Exceptions in Java

I would like to know how to create my own exception to control that the notes only have the rank of 1 to 10, that if it is not fulfilled skip a message Code: System.out.println("Introduca fecha de nacimiento"); do{...
asked by 27.08.2017 / 12:53
2
answers

I get an error Exception in thread "main" java.lang.NullPointerException

I get the following error in console: Puede entrar un coche Coche devuelto Puede entrar un coche Coche devuelto Puede entrar un coche    Exception in thread "main" java.lang.NullPointerException         at Garaje.aceptarCoche (Garaje.java:2...
asked by 24.10.2016 / 10:52
1
answer

Show Error Message if a String contains a numeric character

Well that's my question, I'm doing a form in java swing and when filling in the fields of the JTextField I want to launch an error window in case it contains some numeric character. I have been testing many things but I have not reached anything...
asked by 11.02.2018 / 16:48
1
answer

Handling Exceptions in Rails

How can I do Rails 4 to see the exception captured in my view: rescue Exception => exc # dispone el mensaje de error puts "Error ".concat(exc.message) In the terminal it shows me well, but when I want to pass to the view I can not...
asked by 15.06.2017 / 23:11
2
answers

Error with java exceptions

I'm fighting with this java code about exceptions. What I want to do is create a method that validates if the arguments that happen are correct, but make the exception. the problem is that this leads me to add an exception in the setter, and...
asked by 25.05.2017 / 20:57
1
answer

It does NOT work except for python

! / usr / local / bin / python3 Write an iterative function iterPower​ ​(base,​ ​exp) that calculates the exponential baseexp simply by using successive multiplication. For example, iterPower (base, exp) must calcul...
asked by 01.11.2018 / 19:49
1
answer

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2

I have a problem with this program, when I enter the second FOR this iterates 3 times and the program fails to give me this message: Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2     at java.util.ArrayList....
asked by 26.05.2018 / 22:09
1
answer

Excepcion primary key in php and mysql

I'm inserting data from a txt in a base and it turns out that a field that is the primary key is sometimes repeated, I need to generate a "report" that at the time that file is uploaded, it notifies that primary keys were repeated to the user Is...
asked by 09.04.2018 / 07:26