Questions tagged as 'excepciones'

1
answer

Handling exceptions in Java

Performing a code scan with Fortify detects the following vulnerability in my code. Which tells me the following:    If the catch blocks are several, it can be uncomfortable and repetitive,   but if you "condense" catch blocks by getting a hi...
asked by 01.05.2018 / 01:55
1
answer

Close a recently opened process C #

I need to perform the execution of a process for a certain time, for which I start a process, and using a Timer after 10 minutes, I kill it using Kill() , I do it in the following way: using System.Diagnostics; using System.Thread...
asked by 04.01.2019 / 13:02
2
answers

Exceptions c ++ POO

I must create a program with the triangle class and then create a class with the following exceptions: An error message is issued if one of the sides has a value of zero. An error message is issued (at its own decision) if one of the sides...
asked by 07.11.2018 / 15:33
2
answers

How to throw exceptions using ternary operator in Python

I want to throw an exception on a single line to a method that a boolean has to receive if he does not receive it, by using a ternary operator. How can I do it? I tried to put a else pass but it does not validate the syntax def metodo...
asked by 11.08.2018 / 18:03
2
answers

Problem With Exceptions

Good guys, I told you my problem. I am practicing the subject of the exceptions in java and I have changed some of the validations that I have to replace them with exceptions but I have a problem and I do not know how to implement a second excep...
asked by 06.12.2017 / 20:09
1
answer

Error in java "java.util.ConcurrentModificationException"

Because I reason this exception error when using the iterator in this line: /*if((itTrayectos.next().getIdEinicial() == idEInicial) && (itTrayectos.next().getIdEfinal() == idEFinal))*/ package Grafos; import java.io.*; import java.uti...
asked by 12.12.2016 / 21:15
1
answer

Object reference error

When filling a list in a ViewModel, I get the error:    Reference to object not established as an instance of an object. The ViewModel is this: public class vmMovimientosParking { public vmMovimientosParking() { List...
asked by 29.08.2016 / 13:05
1
answer

Different syntax for throw

I have a question that has come up to me using the keyword throw of JavaScript. According to the documentation the syntax is:    throw expression; Now, I've seen several examples using throw as if it were a call to a function, that i...
asked by 02.01.2017 / 17:05
1
answer

Exception AttributeError: "'NoneType' object has no attribute 'dump'"

I find myself practicing with Python , doing a little POO , a class here, another over there ... :) ... and, also, with handling of files and pickle . I expose the code block of a file called "manager.py": # encoding: utf-8 from io impo...
asked by 23.04.2018 / 00:46
1
answer

Are the e.HResult of the exceptions in c # unique?

I want to know if each e.HResult that gives an exception is unique and that as such it is always the same. Or else how could I validate a specific exception always? My problem is that I need an exception which tells me that it is not possible...
asked by 10.11.2017 / 16:05