StackOverflow Questions for Tag: throws

jbranchaud
jbranchaud

Reputation: 6087

When to use throws in a Java method declaration?

Score: 95

Views: 138575

Answers: 8

Read More
leavez
leavez

Reputation: 2218

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

Score: 7

Views: 2458

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: 113201

Answers: 10

Read More
Simon Forsberg
Simon Forsberg

Reputation: 13331

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

Score: 11

Views: 2183

Answers: 3

Read More
Coderrr
Coderrr

Reputation: 571

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

Score: 57

Views: 78522

Answers: 1

Read More
Gargo
Gargo

Reputation: 1380

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

Score: 1

Views: 355

Answers: 2

Read More
devdoe
devdoe

Reputation: 4325

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

Score: 135

Views: 251621

Answers: 9

Read More
Kevin Rave
Kevin Rave

Reputation: 14426

IllegalArgumentException is not being caught or missing something

Score: 2

Views: 2603

Answers: 3

Read More
ng.newbie
ng.newbie

Reputation: 3218

Why doesn't @SneakyThrows throw a ClassCastException?

Score: -1

Views: 119

Answers: 3

Read More
Niklas R
Niklas R

Reputation: 16860

Why is it not necessary to catch the IllegalArgumentException?

Score: 7

Views: 2854

Answers: 2

Read More
Louis Rhys
Louis Rhys

Reputation: 35637

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

Score: 132

Views: 88077

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: 1088

Answers: 4

Read More
kinkkelaade
kinkkelaade

Reputation: 1

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

Score: -1

Views: 228

Answers: 1

Read More
candied_orange
candied_orange

Reputation: 7308

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

Score: 0

Views: 38

Answers: 1

Read More
mafu
mafu

Reputation: 32640

Should I declare unchecked exceptions in the throws specification?

Score: 43

Views: 19446

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: 177

Answers: 2

Read More
meez
meez

Reputation: 4759

Using throw new Error or try catch in Javascript async function

Score: 0

Views: 619

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