StackOverflow Questions for Tag: throws

jbranchaud
jbranchaud

Reputation: 6087

When to use throws in a Java method declaration?

Score: 95

Views: 138942

Answers: 8

Read More
leavez
leavez

Reputation: 2218

How to declare "throws" for `subscript(dynamicMember:)`in @dynamicMemberLookup in swift?

Score: 7

Views: 2486

Answers: 2

Read More
Regex Rookie
Regex Rookie

Reputation: 10662

Is there a way to make Runnable's run() throw an exception?

Score: 99

Views: 113691

Answers: 10

Read More
Simon Forsberg
Simon Forsberg

Reputation: 13351

Catching an Exception and rethrowing it, but it's not an Exception

Score: 11

Views: 2226

Answers: 3

Read More
Coderrr
Coderrr

Reputation: 571

Either re-interrupt this method or rethrow the "InterruptedException issue in sonar

Score: 57

Views: 79691

Answers: 1

Read More
Gargo
Gargo

Reputation: 1377

Execute multiple concurrent (async let) tasks and throw their error only when all of them are failed

Score: 1

Views: 402

Answers: 2

Read More
devdoe
devdoe

Reputation: 4360

Why is "throws Exception" necessary when calling a function?

Score: 135

Views: 252337

Answers: 9

Read More
Kevin Rave
Kevin Rave

Reputation: 14456

IllegalArgumentException is not being caught or missing something

Score: 2

Views: 2629

Answers: 3

Read More
ng.newbie
ng.newbie

Reputation: 3226

Why doesn't @SneakyThrows throw a ClassCastException?

Score: -1

Views: 122

Answers: 3

Read More
Niklas R
Niklas R

Reputation: 16900

Why is it not necessary to catch the IllegalArgumentException?

Score: 7

Views: 2866

Answers: 2

Read More
Louis Rhys
Louis Rhys

Reputation: 35637

How to use Java-style throws keyword in C#?

Score: 132

Views: 88384

Answers: 10

Read More
kevinyyh
kevinyyh

Reputation: 1

Can we say that the try-catch block is the only way to handle an exception in java?

Score: 0

Views: 1103

Answers: 4

Read More
kinkkelaade
kinkkelaade

Reputation: 1

Why is result of throwable get.Message ignored in my exception?

Score: -1

Views: 244

Answers: 1

Read More
candied_orange
candied_orange

Reputation: 7344

Setter only does assignment, yet declares that it throws a ParseException; in Hibernate

Score: 0

Views: 38

Answers: 1

Read More
mafu
mafu

Reputation: 32710

Should I declare unchecked exceptions in the throws specification?

Score: 43

Views: 19588

Answers: 4

Read More
Surbhi Jain
Surbhi Jain

Reputation: 369

Try-Catch vs re throwing an exception?

Score: 1

Views: 86

Answers: 1

Read More
user8619111
user8619111

Reputation:

How to pass differents Exceptions to a Java method?

Score: 0

Views: 185

Answers: 2

Read More
meez
meez

Reputation: 4788

Using throw new Error or try catch in Javascript async function

Score: 0

Views: 620

Answers: 1

Read More
Brian M
Brian M

Reputation: 11

Questions about exception handling in Java specifically the purpose of the throws keyword

Score: 1

Views: 24

Answers: 0

Read More
theutonium.18
theutonium.18

Reputation: 525

Generic throws clause handling in case of overridden methods

Score: 0

Views: 50

Answers: 1

Read More
PreviousPage 1Next