Questions tagged as 'excepciones'

2
answers

Python 3 handling error TypeError: catching classes that do not inherit from BaseException is not allowed

When I run this code: i=0 while i<5: i=i+1; try: SellSta=client.get_order(symbol=Symb,orderId=SellOrderNum,recvWindow=Delay) except client.get_order as e: print ("This is an error message!{}".format(i)) #End whil...
asked by 24.11.2018 / 04:35
1
answer

Error: A JNI error has occurred, please check your installation and try again

I have the following exception: how could I resolve it? Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException at java.la...
asked by 03.10.2016 / 21:48
4
answers

Problem with NumberFormatException and showInputDialog

My problem is that I have a window JOptionPane.showInputDialog that receives a data of type int . I wanted to do a try-catch to handle the exception NumberFormatException if they put a letter instead of a number. The p...
asked by 19.03.2017 / 00:00
2
answers

NullPointerException - exception handling

I had the following error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException This error is generated when generating a PDF file that is already open, if it is closed it creates it but if it is open it jumps that exceptio...
asked by 17.01.2017 / 20:01
2
answers

Error message in c ++

These are the methods of my program, when I divide between 0 the error message is printed and then if they print a series of random numbers (I understand the cout of the main is not executed correctly) What is the best way to check that Do not d...
asked by 17.10.2018 / 18:27
1
answer

How to pass a Listobject by Intent to another Activity?

Good morning, I have an application that I am developing in which I am trying to pass the adapter from RecyclerView by means of Intent to another Activity I do not know what I am doing wrong, annex code, before hand I apprec...
asked by 09.05.2017 / 18:25
2
answers

Error handling in Angular

I have this code for a token , generated with JWT , then I return it to the application if the user accessed it correctly. var token = $localStorage.token; var base64Url = token.split('.')[1]; var base64 = base64Url.replace('-', '+').re...
asked by 18.02.2016 / 17:15
2
answers

Exceptions order to validate java date

I would like to validate a date with the format MM / DD / AA, through a program, to which this date is passed as a parameter, divide it through StringTokenizer into elements, and take into account the exceptions producing an error when it is a n...
asked by 02.10.2016 / 21:52
1
answer

why can not I release my exception

Good evening I'm starting on the issue of raise exeptions and I'm trying to perform a simple operation however it does not work this is what I tried: class errores(Exception): def __int__(self,numero1,numero2): self.num1 = numero1...
asked by 31.12.2018 / 06:05
2
answers

Collect the exception value in numericUpDown

I have several controls of type numericUpDown, the fact is that each of them has a minimum value and another maximum value by default. The user has a keypad where he presses a button with a number from 1 to 9 and a special button to erase the la...
asked by 03.01.2018 / 13:05