Top "Throw" questions

throw is a keyword in various languages used for signaling an exception.

What can you throw in Java?

Conventional wisdom says you can only throw objects that extend Throwable in Java, but is it possible to disable the …

java exception throw
gcc exception specification of default destructor

class A { public: virtual ~A() { } }; class B : virtual public A { public: ~B() throw() {} }; class C : public B { }; int main(int …

c++ linux exception gcc throw
C++: Throwing exceptions, use 'new' or not?

Is it proper to use throw new FoobarException(Baz argument); or throw FoobarException(Baz argument);? When catching I always use …

c++ exception throw
generic throw giving Expected an object to be thrown lint error

Below throw code giving lint error Expected an object to be thrown no-throw-literal throw { code : 403, message : myMessage }; if i try …

javascript ecmascript-6 polymer eslint throw
What is the difference between Exception, InvalidArgumentException or UnexpectedValueException?

When should I use Exception, InvalidArgumentException or UnexpectedValueException? I don't know the real different between them as I always used …

php exception error-handling throw
How to import ErrorObservable or _throw in rxjs6? throw in rxjs

I am migrating to rxjs 6.0.0-ucandoit-rc.6. In version 5.5.2 I was using ErrorObservable to create errorous observable. I was using the …

angular migration rxjs throw rxjs-pipeable-operators
Different exception specifier with g++ 6.2

Could someone explain to me why this code doesn't compile with g++ version 6.2.0, but compiles fine with clang++ version 3.9.0-svn274438…

c++ exception g++ throw
Catch/Modify (Message)/Rethrow Exception of same type

I want a central place to extract information from an exception, set all the information I need to its message …

c# exception casting throw